daemon off; worker_processes 1; error_log logs/nginx_error.log; events { worker_connections 1024; } http { sendfile on; # This may be different depending on the platform. include /etc/nginx/mime.types; default_type application/octet-stream; access_log logs/nginx_access.log; server { server_name localhost; charset utf-8; # If running hue on http:// listen 8001; # If running hue on https:// ## listen 8001 ssl; ## ssl_certificate /path/to/ssl/cert; ## ssl_certificate_key /path/to/ssl/key; location / { proxy_pass http://hue; } location /static/ { # Uncomment to expose the static file directories. ## autoindex on; # The default Hue staticfile packaging installation directory. alias /usr/lib/hue/build/static/; # The default Hue staticfile parcel installation directory. ## /opt/cloudera/parcels/CDH/lib/hue/build/static/; expires 30d; add_header Cache-Control public; } } include ../var/nginx-hue.conf; }