chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

Basepath setting not working as expected

Open legendary-jarppi opened this issue 9 years ago • 0 comments

It seems that basepath setting is not working as expected when running for example behind AWS Application Load Balancer with target path set for example to /chronograf/* and using command line switch --basepath /chronograf when starting chronograf.

I would expect this to work out of the box, but it seems that chronograf only rewrites URLs on the generated web pages to have the basepath prefix, but all routing is still done as if without basepath. This works nicely behind nginx when the basepath prefix is removed from the URL that nginx proxies forward, but in case of AWS ALB, the proxied URL still contains the prefix and chronograf fails to deliver any meaningful content.

Maybe this would call for another command line switch that not only affects the generated asset/page paths, but also routing inside chronograf server?

Operating system: 64-bit Amazon Linux Chronograf version: 1.2.0~beta5 Installed from: pre-built RPM package.

legendary-jarppi avatar Mar 17 '17 09:03 legendary-jarppi