Tag: nginx

macbook lion 安装nginx

没有评论

2012年05月15日 at 11:41 上午分类:Linux | 开发技术

1. 下载安装PCRE:

下载地址:http://sourceforge.net/projects/pcre/files/pcre/8.20/pcre-8.20.tar.gz/download
tar xvzf pcre-8.20.tar.gz
rm pcre-8.20.tar.gz
c[......]

Read more

Popularity: 1% [?]

nginx根据http_user_agent过滤防DDOS攻击

没有评论

2011年11月24日 at 5:11 下午分类:Linux

首先查看访问日志,找出可疑访问 找到http_user_agent 的特征,然后再作过滤

举例如下:
“Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; MyIE 3.01)Cache-Control: no-store, must-re[......]

Read more

Popularity: 9% [?]

nginx [emerg]: getpwnam(“www”) failed 处理办法

2 条评论

2010年11月30日 at 2:59 上午分类:Linux | 开发技术

在配置nginx提示如下错误时:
[emerg]: getpwnam(“www”) failed
解决方案:
在nginx.conf中 把user nobody的注释去掉既可

Popularity: 21% [?]

查看apache,php等编辑参数

3 条评论

2010年06月14日 at 1:16 下午分类:Linux | PHP前沿 | 开发技术

有时候nginx,apache,mysql,php编译完了想看看编译参数可以用以下方法 nginx编译参数:

#/usr/local/nginx/sbin/nginx -V

nginx version: nginx/0.6.32 built by gcc 4.1.2 20071124 ([......]

Read more

Popularity: 5% [?]

Nginx反向代理配置详解

5 条评论

2010年05月26日 at 1:46 下午分类:Linux | 开发技术

当前大并发的网站基本都采用了Nginx来做代理服务器,并且做缓存,来扛住大并发。先前也用nginx配置过简单的代理,今天有时间把整合过程拿出来和大家分享,不过其中大部分也是网上找来的资源。不过我以我自己的理解方式写得更加详细点。
首先安装Nginx
1.建立用户和用户组

/usr/s[......]

Read more

Popularity: 19% [?]