server {
listen 80 default_server;
root /var/www/cheesetv/public;
index index.php index.html index.htm;
access_log /var/log/nginx/cbook.access.log;
error_log /var/log/nginx/cbook.error.log;
server_name localhost;
location / {
index index.php;
if (!-f $request_filename) {
rewrite ^/(.+)$ /index.php?$1& last;
}
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param APPLICATION_ENV yingxi;
}
}
listen 80 default_server;
root /var/www/cheesetv/public;
index index.php index.html index.htm;
access_log /var/log/nginx/cbook.access.log;
error_log /var/log/nginx/cbook.error.log;
server_name localhost;
location / {
index index.php;
if (!-f $request_filename) {
rewrite ^/(.+)$ /index.php?$1& last;
}
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param APPLICATION_ENV yingxi;
}
}