在wdcp下配置 Demila时发现不管怎么弄都是404,结果发现wdcp下nginx配置文件比较奇葩,需要改。。。。修改如下
1 2 3 4 5 | location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fcgi.conf; } |
改为:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | location ~ \.php { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fcgi.conf; set $path_info ""; set $real_script_name $fastcgi_script_name; if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") { set $real_script_name $1; set $path_info $2; } fastcgi_param SCRIPT_FILENAME $document_root$real_script_name; fastcgi_param SCRIPT_NAME $real_script_name; fastcgi_param PATH_INFO $path_info; } |