Hi everyone,
I am trying to get Hue to run on a custom location, something like: <hostname>/hue/.
Is there an elegant solution to achieve this?
I have tried running Hue behind nginx and doing proxy_pass to the cherrypy instance that is
running on a different port. The problem is that once I am in Hue, if I click on different links they
will be handled by cherrypy, thus being sent to <hostname>/<request_uri> instead of <hostname>/hue/<request_uri>.
My nginx config looks like this:
server {
server_name cluster-node1;
charset utf-8;
listen 8001;
location /hue/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_pass http://cluster-node1:8888/;
}
location /static/ {
# Or if on a parcel install:
alias /opt/cloudera/parcels/CDH/lib/hue/build/static/;
expires 30d;
add_header Cache-Control public;
}
}
Thanks,
Emanuel