123456789101112131415161718192021222324252627282930313233343536373839404142 |
- worker_processes 8;
- events {
- worker_connections 1024;
- }
- http {
- include /home/vagrant/FrameworkBenchmarks/installs/nginx/conf/mime.types;
- default_type application/octet-stream;
- access_log off;
- sendfile on;
- keepalive_timeout 65;
- upstream fastcgi_backend {
- server 127.0.0.1:9001;
- keepalive 32;
- }
- server {
- listen 8080;
- server_name localhost;
- root /home/vagrant/FrameworkBenchmarks/frameworks/PHP/php-laravel/public/;
- index index.php;
- location / {
- try_files $uri $uri/ /index.php?$uri&$args;
- }
- # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
- #
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_pass fastcgi_backend;
- fastcgi_keep_conn on;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include /home/vagrant/FrameworkBenchmarks/installs/nginx/conf/fastcgi_params;
- }
- }
- }
|