1+ #user nobody;
2+ worker_processes 8;
3+
4+ #error_log logs/error.log;
5+ #error_log logs/error.log notice;
6+ #error_log logs/error.log info;
7+
8+ #pid logs/nginx.pid;
9+
10+
11+ events {
12+ worker_connections 1024 ;
13+ }
14+
15+
16+ http {
17+ include /usr/local/nginx/conf/mime.types ;
18+ default_type application/octet-stream ;
19+
20+ #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
21+ # '$status $body_bytes_sent "$http_referer" '
22+ # '"$http_user_agent" "$http_x_forwarded_for"';
23+
24+ #access_log logs/access.log main;
25+
26+ sendfile on;
27+ #tcp_nopush on;
28+
29+ #keepalive_timeout 0;
30+ keepalive_timeout 65 ;
31+
32+ #gzip on;
33+
34+ server {
35+ listen 8080 ;
36+ server_name localhost;
37+
38+ #charset koi8-r;
39+
40+ #access_log logs/host.access.log main;
41+
42+ #location / {
43+ # root html;
44+ # index index.html index.htm;
45+ #}
46+
47+ #error_page 404 /404.html;
48+
49+ # redirect server error pages to the static page /50x.html
50+ #
51+ #error_page 500 502 503 504 /50x.html;
52+ #location = /50x.html {
53+ # root html;
54+ #}
55+
56+ # proxy the PHP scripts to Apache listening on 127.0.0.1:80
57+ #
58+ #location ~ \.php$ {
59+ # proxy_pass http://127.0.0.1;
60+ #}
61+
62+ root /home/ubuntu/FrameworkBenchmarks/php-silex/web/;
63+ index index .php;
64+
65+ location / {
66+ try_files $uri $uri / /index .php?$uri &$args ;
67+ }
68+
69+ # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
70+ #
71+ location ~ \.php$ {
72+ try_files $uri =404 ;
73+ fastcgi_pass 127.0.0.1:9001 ;
74+ fastcgi_index index .php;
75+ # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
76+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name ;
77+ include /usr/local/nginx/conf/fastcgi_params;
78+ }
79+
80+ # deny access to .htaccess files, if Apache's document root
81+ # concurs with nginx's one
82+ #
83+ #location ~ /\.ht {
84+ # deny all;
85+ #}
86+ }
87+
88+
89+ # another virtual host using mix of IP-, name-, and port-based configuration
90+ #
91+ #server {
92+ # listen 8000;
93+ # listen somename:8080;
94+ # server_name somename alias another.alias;
95+
96+ # location / {
97+ # root html;
98+ # index index.html index.htm;
99+ # }
100+ #}
101+
102+
103+ # HTTPS server
104+ #
105+ #server {
106+ # listen 443;
107+ # server_name localhost;
108+
109+ # ssl on;
110+ # ssl_certificate cert.pem;
111+ # ssl_certificate_key cert.key;
112+
113+ # ssl_session_timeout 5m;
114+
115+ # ssl_protocols SSLv2 SSLv3 TLSv1;
116+ # ssl_ciphers HIGH:!aNULL:!MD5;
117+ # ssl_prefer_server_ciphers on;
118+
119+ # location / {
120+ # root html;
121+ # index index.html index.htm;
122+ # }
123+ #}
124+
125+ }
0 commit comments