nginx.conf 792 B

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