server
{
listen 80 default_server;
#listen [::]:80 default_server ipv6only=on;
server_name www.lnmp.org;
index index.html index.htm index.php;
root /home/wwwroot/default;
#error_page 404 /404.html;
#替换include enable-php.conf;
#为
include enable-php-pathinfo.conf;
location /nginx_status
{
stub_status on;
access_log off;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /\.
{
deny all;
}
access_log /home/wwwlogs/access.log;
error_log /home/wwwlogs/error.log error;
}
include vhost/*.conf;
}
lnmp1.5一键安装包支持thinkphp3.2.3的pathinfo模式
猜你喜欢
转载自blog.csdn.net/moliyiran/article/details/85053011
今日推荐
周排行