我访问了网址:http://192.168.94.128:81/index.php/login?a=123
我认为“$ _SERVER [' SCRIPT_NAME']"值应为' /index.php' 但现在它是' /index.php/login'
我想很长一段时间,都不知道答案
谁知道为什么?
网址:http://192.168.94.128:81/index.php/login?a=123
我的nginx配置是:
server {
listen 81;
server_name localhost;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location / {
root /home/www/ebook;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
其他nginx配置是默认设置