Nginx安装nginx-http-concat模块方法
下载模块 git clone git://github.com/alibaba/nginx-http-concat.git
下载模块 git clone git://github.com/alibaba/nginx-http-concat.git
Nginx有自己专用的封锁IP的模块ngx_http_access_module ,语法如下: deny IP; deny subnet; allow IP; allow subnet; # block all ips deny all; […]
# curl –head www.nginx.net HTTP/1.1 302 Moved Temporarily Server: nginx/0.8.38 Date: Fri, 04 Jun 2010 01:08:44 GMT Conte […]
vi 编辑站点配置文件 在server_name这一行的下方加入 if ($host != 'www.05273.com' ) { rewrite ^/(.*)$ http://www.05273.com/$1 perm […]
location ~ /upload/.*.(php|php5)?$ { deny all; return 404; } 这就是禁止upload内执行php,但是图片可以打开哦 多目录禁止:
在nginx.conf的http{}添加 limit_zone one $binary_remote_addr 10m; 然后在虚拟机里写 location / { limit_conn one 1; 线程 limit_rate 100k; […]