nginx(vhost-conf)配置伪静态规则
做个记录,每次找都要找半天,tp5这个没问题,其它没试过
server { listen 81; server_name 127.0.0.1; root "G:\gkplay\public"; location / { index index.html index.htm index.php; #autoindex on; #伪静态 if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } } location ~ \.php(.*)$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params; } }
- 版权申明:此文如未标注转载均为本站原创,自由转载请表明出处《龙行博客》。
- 本文网址:https://www.liaotaoo.cn/118.html
- 上篇文章:天.听说熊掌号团队解散了
- 下篇文章:基于大数据黑科技-麒麟云音乐6.0-无损任意下-震撼环绕音效

小寒冰博客2018-12-03 16:03回复
#2
互访了

明月清风2018-12-02 12:38回复
#1
博主你是不是该解决一下waf中url白名单的规则写法啊。