nginx 隐藏入口文件

.conf

location / {
		index  index.html index.htm index.php;
		#autoindex  on;
		if (!-e $request_filename) {
		 rewrite  ^(.*)$  /index.php?s=/$1  last;
		}
	}
posted @ 2021-11-18 10:25  子岚天羽卿怜水  阅读(126)  评论(0编辑  收藏  举报