nginx.conf 739 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. }
  15. server {
  16. listen 8080;
  17. server_name localhost;
  18. root /home/ubuntu/FrameworkBenchmarks/;
  19. index index.php;
  20. location / {
  21. try_files $uri $uri/ /index.php?$uri&$args;
  22. }
  23. location ~ \.php$ {
  24. try_files $uri =404;
  25. fastcgi_pass fastcgi_backend;
  26. fastcgi_index index.php;
  27. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  28. include /usr/local/nginx/conf/fastcgi_params;
  29. }
  30. }
  31. }