nginx-hhvm.conf 800 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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:/codeigniter/hhvm.sock;
  16. keepalive 50;
  17. }
  18. server {
  19. listen 8080;
  20. server_name localhost;
  21. root /codeigniter/;
  22. index index.php;
  23. location / {
  24. try_files $uri $uri/ /index.php?$uri&$args;
  25. }
  26. location ~ \.php$ {
  27. try_files $uri =404;
  28. fastcgi_pass fastcgi_backend;
  29. fastcgi_keep_conn on;
  30. fastcgi_index index.php;
  31. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  32. include /etc/nginx/fastcgi_params;
  33. }
  34. }
  35. }