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