龙空技术网

TP5 Nginx配置

码小弟 125

前言:

眼前兄弟们对“nginx配置tp框架”大致比较注重,大家都需要剖析一些“nginx配置tp框架”的相关资讯。那么小编同时在网络上收集了一些关于“nginx配置tp框架””的相关知识,希望各位老铁们能喜欢,大家一起来了解一下吧!

使用FastAdmin时,只有index页面能进去,其他页面都是404的解决办法:

server { listen 80; server_name test.wqzsub.com; location / { root /var/www/test; index index.php index.html index.htm; /*-------添加下面这段话-----*/ if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } /*-------------------------*/ } location ~ \.php$ { root /var/www/test; fastcgi_pass unix:/run/php/php7.0-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }}

标签: #nginx配置tp框架