网友回复
nginx中try_files的的作用就是查找文件发送给客户端,如果没有就检查候选项的文件,一个个地查找候选项文件发送
location / { try_files $uri $uri/ /index.php?$query_string; } location ~ .*\.(php|php5)?$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; }
当用户请求 http://loc...
点击查看剩余70%
网友回复
nginx中try_files的的作用就是查找文件发送给客户端,如果没有就检查候选项的文件,一个个地查找候选项文件发送
location / { try_files $uri $uri/ /index.php?$query_string; } location ~ .*\.(php|php5)?$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; }
当用户请求 http://loc...
点击查看剩余70%