nginx.conf 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. worker_processes 8;
  2. events {
  3. worker_connections 1024;
  4. }
  5. http {
  6. include /home/vagrant/FrameworkBenchmarks/installs/nginx/conf/mime.types;
  7. default_type application/octet-stream;
  8. access_log off;
  9. sendfile on;
  10. keepalive_timeout 65;
  11. upstream fastcgi_backend {
  12. server 127.0.0.1:9001;
  13. keepalive 32;
  14. }
  15. server {
  16. listen 8080;
  17. server_name localhost;
  18. root /home/vagrant/FrameworkBenchmarks/frameworks/PHP/php-laravel/public/;
  19. index index.php;
  20. location / {
  21. try_files $uri $uri/ /index.php?$uri&$args;
  22. }
  23. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  24. #
  25. location ~ \.php$ {
  26. try_files $uri =404;
  27. fastcgi_pass fastcgi_backend;
  28. fastcgi_keep_conn on;
  29. fastcgi_index index.php;
  30. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  31. include /home/vagrant/FrameworkBenchmarks/installs/nginx/conf/fastcgi_params;
  32. }
  33. }
  34. }