我创建了一个mvc绘画,使用此配置完美地运行nginx:
location / {
root html/Public;
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;
location ~ .php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME C:/nginx/html/Public/$fastcgi_script_name;
include fastcgi_params;
}
}
我需要一个用于删除/Public/index.php的cpanel的htaccess,但保持Public内部文件夹的完整性,例如/Template/image/slide.jpg