hue_httpd_template 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. LoadModule proxy_module /etc/httpd/modules/mod_proxy.so
  2. LoadModule proxy_balancer_module /etc/httpd/modules/mod_proxy_balancer.so
  3. LoadModule proxy_http_module /etc/httpd/modules/mod_proxy_http.so
  4. LoadModule slotmem_shm_module /etc/httpd/modules/mod_slotmem_shm.so
  5. LoadModule unixd_module /etc/httpd/modules/mod_unixd.so
  6. LoadModule lbmethod_byrequests_module /etc/httpd/modules/mod_lbmethod_byrequests.so
  7. LoadModule authz_core_module /etc/httpd/modules/mod_authz_core.so
  8. LoadModule log_config_module /etc/httpd/modules/mod_log_config.so
  9. LoadModule mime_module /etc/httpd/modules/mod_mime.so
  10. LoadModule mpm_event_module /etc/httpd/modules/mpm_event_module.so
  11. ErrorLog "${HUE_LOG_DIR}/httpd_error_log"
  12. LogLevel warn
  13. <IfModule log_config_module>
  14. LogFormat "%{X-Forwarded-For}i %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  15. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  16. CustomLog "${HUE_LOG_DIR}/httpd_access_log" common
  17. </IfModule>
  18. <IfModule mpm_event_module>
  19. ServerLimit 5000
  20. StartServers 1000
  21. MaxClients 10000
  22. MinSpareThreads 750
  23. MaxSpareThreads 2500
  24. ThreadsPerChild 500
  25. MaxRequestsPerChild 10000
  26. </IfModule>
  27. <IfModule mime_module>
  28. TypesConfig /etc/mime.types
  29. AddType application/x-compress .Z
  30. AddType application/x-gzip .gz .tgz
  31. </IfModule>
  32. <Directory />
  33. Options FollowSymlinks
  34. AllowOverride none
  35. </Directory>
  36. <Directory ${HUE_HOME}/build/static>
  37. Options -Indexes
  38. Require all granted
  39. </Directory>
  40. Alias /static ${HUE_HOME}/build/static
  41. Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/" env=BALANCER_ROUTE_CHANGED
  42. ProxyPreserveHost Off
  43. ProxyAddHeaders On
  44. ProxyPass /static !
  45. ProxyPass / balancer://hue/ stickysession=ROUTEID
  46. SetEnv proxy-initial-not-pooled 1
  47. ProxyTimeout 900
  48. KeepAlive On
  49. KeepAliveTimeout 120
  50. MaxKeepAliveRequests 500
  51. AllowEncodedSlashes NoDecode
  52. User ${HUEUSER}
  53. Group ${HUEUSER}
  54. Include /etc/httpd/conf.d/hue.conf