全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 596|回复: 9
打印 上一主题 下一主题

apt-get install php5-?

[复制链接]
跳转到指定楼层
1#
发表于 2012-1-19 17:54:04 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
有没一键搞定nginx php(二进制)跨目录问题

如果限制php目录的话 要开很多cgi端口 不便操作 和应用批量生产

求指令 求方法
10#
发表于 2012-1-19 18:41:52 | 只看该作者
Secure your upload directory!!
Too many example configs fail to secure the "uploads" directory of the application. Remember that if someone can upload a file named xyz.php and the uploads dir is publically accessible then you have given the attacker an easy way to insert PHP onto your site...

So if your app has an upload dir "/images/" then insert if ($uri !~ "^/images/") before fastcgi_pass, as so:

location ~ \.php$ {
  include /etc/nginx/fastcgi_params;
  if ($uri !~ "^/images/") {
    fastcgi_pass 127.0.0.1:9000;
  }
}


这样?

评分

参与人数 1威望 +10 收起 理由
大胡子 + 10 OK?

查看全部评分

9#
 楼主| 发表于 2012-1-19 18:28:47 | 只看该作者
Kvm 发表于 2012-1-19 18:20
圈圈面对我用spawn-fcgi+unix链接 已经崩溃了
没想到 大胡子能让圈圈彻底崩溃

一个网站一个用户组
8#
 楼主| 发表于 2012-1-19 18:27:19 | 只看该作者
Kvm 发表于 2012-1-19 18:20
圈圈面对我用spawn-fcgi+unix链接 已经崩溃了
没想到 大胡子能让圈圈彻底崩溃

圈圈跑了

现在用spawn-fcgi+unix  限制php路径 好像跨不了了

一会儿正式测试下
7#
发表于 2012-1-19 18:20:37 | 只看该作者
圈圈面对我用spawn-fcgi+unix链接 已经崩溃了
没想到 大胡子能让圈圈彻底崩溃
6#
发表于 2012-1-19 18:18:38 | 只看该作者
hello gays
5#
发表于 2012-1-19 18:09:14 | 只看该作者
我表示理解不能。
4#
发表于 2012-1-19 17:57:05 | 只看该作者
我表示楼下知道的~
3#
 楼主| 发表于 2012-1-19 17:56:59 | 只看该作者
cnweb 发表于 2012-1-19 17:55
大胡子来啦

龌龊哦
2#
发表于 2012-1-19 17:55:46 | 只看该作者
大胡子来啦
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-11-10 05:42 , Processed in 0.073524 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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