MAC Nginx + PHP 使用ThinkPHP怎么去掉index.php
MAC Nginx + PHP 使用ThinkPHP怎么去掉index.php
日期:2021-11-05 03:15:21 人气:1
nginx default.conf配置文件
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
}
location ~ \.php {
fastcgi_pass 127.0.0.1:9000;
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
}
location ~ \.php {
fastcgi_pass 127.0.0.1:9000;