server {
listen 8001;
server_name localhost;
index index.html index.htm index.php;
root /alidata/www/jimmyblog/wwwroot;
location ~ .*\.(php|php5)?$
{
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 1h;
}
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
}
#include /alidata/server/nginx/conf/rewrite/jimmyblog.conf;
access_log /alidata/log/nginx/access/jimmyblog.log;
}