VPS侦探论坛

 找回密码
 注册
查看: 7776|回复: 3

请教大哥怎么配置nginx 支持PATH_INFO

[复制链接]
发表于 2011-7-3 22:25:32 | 显示全部楼层 |阅读模式

http://open.t.qq.com/bbs/viewthread.php?tid=8295&extra=page%3D1
架设了Iweibo 现在 访问不了
麻烦大哥帮忙看下
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-7-4 19:32:43 | 显示全部楼层


反过来就行了:
https://www.vpser.net/security/lnmp-php-pathinfo.html

建议打开后,关掉上传目录的PHP执行权限:
https://www.vpser.net/security/lnmp-remove-nginx-php-execute.html
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-7-4 20:27:14 | 显示全部楼层

回复 2# 的帖子


大哥 我测试了 还是不行啊 伪静态文件该放在什么地方呢?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-7-4 21:28:31 | 显示全部楼层



自己添加一个
/usr/local/nginx/conf/test.conf

规则加在test.conf里,然后在你绑定的域名里include设置一下。。。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-20 21:24 , Processed in 0.026191 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表