TP3项目部署服务器问题 www.xxx.com/模块/控制器/操作 这样是我现在的,不能打开www.xxx.com/index.php/模块/控制器/操作 加上入口文件后可以正常打开网上搜了说是服务器不支持pathinfo 请问该怎么修改配置nginx 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 server { listen 80; server_name XXXXXXXXXX ; root "XXXXXXXXXX"; location / { index index.html index.htm index.php; #autoindex on; if (!-e $request_filename) { rewrite ^(.*)$ /index.php/$1 last; break; } } location ~ \.php(.*)$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $1; include fastcgi_params; }} server{ listen 80; server_name www.demo2.com; #绑定域名 location / { root /data/html/demo2; index index.php index.html index.htm; } location ~ \.php$ { root /data/html/demo1; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; #fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME /data/html/demo2$fastcgi_script_name; include fastcgi_params; } } PHP链接不上MYSQL apache+mysql+php登陆不成功~ 跨页面后,session读取失败的问题 百度编辑器提交数据时如何防止html标签被转义 请php高手帮个忙,怎么远程调用参数? mb_substr问题 将excle的内容导入mysql的问题 请教PHP显示MYSQL图片字段的问题,100分 请问安装php一定要手动修改注册表吗?有没有其它的方法。 求PHP采取淘宝商品的解决方案。 php命名空间与include的问题 使用FILEINPUT上传文件至新浪云storage接口的问题
server {
listen 80;
server_name XXXXXXXXXX ;
root "XXXXXXXXXX";
location / {
index index.html index.htm index.php;
#autoindex on;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php/$1 last;
break;
}
}
location ~ \.php(.*)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $1;
include fastcgi_params;
}
}
listen 80;
server_name www.demo2.com; #绑定域名
location / {
root /data/html/demo2;
index index.php index.html index.htm;
}
location ~ \.php$ {
root /data/html/demo1;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
#fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME /data/html/demo2$fastcgi_script_name;
include fastcgi_params;
}
}