标签:
server {
listen 80;
server_name localhost;
index index.html index.htm index.php;
root /alidata/www/pro;
location ~ .*\.(php|php5)?$
{
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
include pathinfo.conf;# 加载phpinfo.conf配置
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 1h;
}
#α¾²Ì¬¹æÔò
include /alidata/server/nginx/conf/rewrite/default.conf;
access_log /alidata/log/nginx/access/mobile.log;
}
标签:
原文地址:http://www.cnblogs.com/bass6/p/5473472.html