1、配置php.ini
結尾部分增加以下配置項
cgi.fix_pathinfo = 1
2、配置nginx.conf,修改默認目錄以及監聽端口
listen 80;
server_name localhost;
location / {
root /cores;
indexi ndex.php index.html index.htm;
}
3、重啟nginx進行測試
4、測試結果
1、配置php.ini
結尾部分增加以下配置項
cgi.fix_pathinfo = 1
2、配置nginx.conf,修改默認目錄以及監聽端口
listen 80;
server_name localhost;
location / {
root /cores;
indexi ndex.php index.html index.htm;
}
3、重啟nginx進行測試
4、測試結果