10,606
社区成员
发帖
与我相关
我的任务
分享
server{
listen 80;
server_name sub.mysite.com;
root /home/wwwroot/mysite/;
index index.php index.html index.htm;
location ~ .*\.(php|php5)?$
{
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
location ~ .*\.(ico|css|js|gif|jpe?g|png|json|atlas)?$ {
expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
}
}