server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /home/ml;
index index.php index.html index.htm;
server_name localhost;
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
}
location ~ \.php{
# Pass the PHP files to PHP FastCGI for processing
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param CT_DEV_MODE 'true';
include fastcgi_params;
}
}比如域名是abc.com,输入 abc.com/Admin ,确定后应该会自动变成abc.com/Admin/Public/login.html。但是却是很奇怪的变成了abc.com.php/Admin/Public/login.html。请问这是什么问题。怎么配置才能让3.2.3正常运行,跪求正确的配置 最佳答案