全球主机交流论坛

标题: apt-get install php5-? [打印本页]

作者: 大胡子    时间: 2012-1-19 17:54
标题: apt-get install php5-?
有没一键搞定nginx php(二进制)跨目录问题

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

求指令 求方法
作者: cnweb    时间: 2012-1-19 17:55
大胡子来啦
作者: 大胡子    时间: 2012-1-19 17:56
cnweb 发表于 2012-1-19 17:55
大胡子来啦

龌龊哦
作者: 随风舞    时间: 2012-1-19 17:57
我表示楼下知道的~
作者: nbclare    时间: 2012-1-19 18:09
我表示理解不能。
作者: Kvm    时间: 2012-1-19 18:18
hello gays
作者: Kvm    时间: 2012-1-19 18:20
圈圈面对我用spawn-fcgi+unix链接 已经崩溃了
没想到 大胡子能让圈圈彻底崩溃
作者: 大胡子    时间: 2012-1-19 18:27
Kvm 发表于 2012-1-19 18:20
圈圈面对我用spawn-fcgi+unix链接 已经崩溃了
没想到 大胡子能让圈圈彻底崩溃

圈圈跑了

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

一会儿正式测试下
作者: 大胡子    时间: 2012-1-19 18:28
Kvm 发表于 2012-1-19 18:20
圈圈面对我用spawn-fcgi+unix链接 已经崩溃了
没想到 大胡子能让圈圈彻底崩溃

一个网站一个用户组
作者: lopakaka    时间: 2012-1-19 18:41
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;
  }
}


这样?




欢迎光临 全球主机交流论坛 (https://lilynana.eu.org/) Powered by Discuz! X3.4