当前位置:首页 > IT技术 > Web编程 > 正文

thinkphp NGINX 多入口配置
2021-10-18 17:43:31


多个入口访问官方可以访问,访问后台就不行了,需要配置多入口

 

listen 80;

server_name 172.30.164.199;

index index.php index.html index.htm default.php default.htm default.html login.php;

root /www/wwwroot/nqi/public;


if (!-e $request_filename) {

rewrite /login.php(.*)$ /login.php$1 last;

rewrite ^(.*)$ /index.php/$1;

break;

#rewrite ^(.*)$ /index.php?s=/$1 last;

}


本文摘自 :https://blog.51cto.com/y