nginx.conf 887 B

12345678910111213141516171819202122232425262728293031323334
  1. worker_processes 8;
  2. error_log stderr error;
  3. events {
  4. worker_connections 1024;
  5. }
  6. http {
  7. include /usr/local/nginx/conf/mime.types;
  8. default_type application/octet-stream;
  9. access_log off;
  10. sendfile on;
  11. keepalive_timeout 65;
  12. upstream fastcgi_backend {
  13. server 127.0.0.1:9001;
  14. keepalive 32;
  15. }
  16. server {
  17. listen 8080;
  18. server_name localhost;
  19. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9001
  20. location ~ \.(hh|php)$ {
  21. root TEST_ROOT;
  22. #fastcgi_keep_conn on;
  23. fastcgi_pass fastcgi_backend;
  24. #fastcgi_pass 127.0.0.1:9001;
  25. fastcgi_index index.php;
  26. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  27. include /usr/local/nginx/conf/fastcgi_params;
  28. }
  29. }
  30. }