11 2013 档案
摘要:location ~ /dir/.*.(php|php5)?$ {deny all;}禁止dir目录执行php文件权限多个目录location ~ /(dir|upload)/.*.(php|php5)?$ {deny all;}禁止dir和upload目录执行php文件权限 配置完成重启web服务。
阅读全文
摘要:打开nginx主配置文件nginx.conf 找到http{}段,添加client_max_body_size 20m;
阅读全文
摘要:手机号检测^1[3|4|5|8][0-9]\d{8}$邮箱检测^[0-9a-z][_.0-9a-z-]{0,31}@([0-9a-z][0-9a-z-]{0,30}[0-9a-z]\.){1,4}[a-z]{2,4}$
阅读全文
摘要:经过上周一周朋友们帮忙测试和bug fix,nginx_http_hashdos_module已经达到可以线上使用的水平,下面是使用记录。下载#wget --no-check-certificate https://github.com/54chen/nginx-http-hashdos-module/zipball/master#mv master nginx_hashdos.zip#unzip nginx_hashdos.zip编译安装#tar zxvf nginx-1.0.xx.tar.gz#cd nginx-1.0.xx/#./configure --prefix=/opt/soft/
阅读全文

浙公网安备 33010602011771号