nginx.conf 900 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. daemon off;
  2. worker_processes 1;
  3. error_log logs/nginx_error.log;
  4. events {
  5. worker_connections 1024;
  6. }
  7. http {
  8. sendfile on;
  9. # This may be different depending on the platform.
  10. include /etc/nginx/mime.types;
  11. default_type application/octet-stream;
  12. access_log logs/nginx_access.log;
  13. server {
  14. listen 8001;
  15. server_name localhost;
  16. charset utf-8;
  17. location / {
  18. proxy_pass http://hue;
  19. }
  20. location /static/ {
  21. autoindex on;
  22. # The default Hue staticfile packaging installation directory.
  23. alias /usr/lib/hue/build/static/;
  24. # The default Hue staticfile parcel installation directory.
  25. ## /opt/cloudera/parcels/CDH/lib/hue/build/static/;
  26. expires 30d;
  27. add_header Cache-Control public;
  28. }
  29. }
  30. include ../var/nginx-hue.conf;
  31. }