server
{
listen 80;
server_name ;
index index.html index.htm index.php;
root /opt/web/vhost;
#limit_conn crawler 20;
include /usr/local/nginx/conf/vhost/rewrite/abc.com-rewrite.conf ;
location ~ .*\.(php|php5)?$
{
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
fastcgi_param SCRIPT_FILENAME /opt/web/vhost/$fastcgi_script_name;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 1h;
}
access_log /opt/logs/abc.com.access main;
error_page 404 /404.php;
}
阅读(545) | 评论(0) | 转发(0) |