nginx同服务器不同目录的差别配置

location / {
index index.html index.htm index.php l.php;
autoindex on;
}
location /xxx1/x2 {
index index.html index.htm index.php;
try_files $uri $uri/ /xxx1/x2/index.php?$query_string;   //这是laravel的nginx配置
}

posted on 2018-08-07 16:30  降魔  阅读(1041)  评论(0编辑  收藏  举报