nginx.conf 821 B

123456789101112131415161718192021222324252627282930313233343536
  1. user root;
  2. worker_processes auto;
  3. error_log stderr error;
  4. worker_rlimit_nofile 200000;
  5. events {
  6. worker_connections 16384;
  7. }
  8. http {
  9. include /etc/nginx/mime.types;
  10. default_type application/octet-stream;
  11. access_log off;
  12. server_tokens off;
  13. sendfile on;
  14. keepalive_timeout 65;
  15. upstream fastcgi_backend {
  16. server unix:/hhvm_app/hhvm.sock;
  17. keepalive 40;
  18. }
  19. server {
  20. listen 8080;
  21. server_name localhost;
  22. location ~ \.(hh|php)$ {
  23. root /hhvm_app;
  24. fastcgi_keep_conn on;
  25. fastcgi_pass fastcgi_backend;
  26. fastcgi_index index.php;
  27. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  28. include /etc/nginx/fastcgi_params;
  29. }
  30. }
  31. }