12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- worker_processes 8;
- events {
- worker_connections 1024;
- }
- http {
- include /usr/local/nginx/conf/mime.types;
- default_type application/octet-stream;
- sendfile on;
- keepalive_timeout 65;
- upstream fastcgi_backend {
- server 127.0.0.1:9001;
- keepalive 32;
- }
- server {
- listen 80;
- server_name localhost;
- root /home/fb/FrameworkBenchmarks/php-senthot/app/;
- index index.php;
- location / {
- try_files $uri /index.php?$args;
- if (-f $request_filename) {
- expires max;
- break;
- }
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_pass fastcgi_backend;
- fastcgi_keep_conn on;
- fastcgi_index index.php;
- include /usr/local/nginx/conf/fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- }
- }
|