Support Questions

Find answers, ask questions, and share your expertise

Changing the Hue context path from 'host:8888/' to something else like 'host:8888/hue/'

New Contributor

Hello,

 

We have a requirement to make Hue available through the customer's IBM Web Portal.  One of the requirements imposed on us is that Hue cannot be hosted at the root context path "host:8888/" and needs to be changed to something like "host:8888/hue/".

 

I am unable to find any means to do this. I have been researching to see if I can to it at the Hue/cherrypi level, Hue Load Balancer/httpd level, and even using haproxy. The closest I have gotten is using haproxy to get “host:8887/hue/” to point to “host:8888/" but it changes the browser’s url back to “host:8888/".

 

Any ideas would be welcome.  Thanks.

 

1 REPLY 1

Contributor

Hello asherma5,

You can configure Hue with an external load-balancer, that way it'll keep the browser on the load-balancer and does not redirect it to itself:
http://gethue.com/automatic-high-availability-with-hue-and-cloudera-manager/


This is only partial solution, as it'll not solve your issue with moving Hue to a subfolder. Hue is based on django, which handles the routing for it. I'm not aware of a way to reliably relocate Django apps to a subfolder without editing the source-code.

Zsolt