摘要: centos/etc/init.d/iptables stop 阅读全文
posted @ 2012-02-15 19:33 像块石头 阅读(1001) 评论(0) 推荐(0)
摘要: 今天在使用nginx限制外网访问内部系统,遇到一个很郁闷的事情,怎么配置都不对,折腾大半天,总结一下。?123456789101112#配置清单location / {deny 192.168.1.1;allow 127.0.0.0/24;allo w 192.168.0.0/16;allow 10.10.0.0/16;deny all;root /opt/hx_cmssearch2.5;index index.jsp;expires 60;keepalive_timeout 60;} 注意事项: 1. deny 一定要加一个ip,否则直接跳转到403,不往下执行了;如果403默认页是同... 阅读全文
posted @ 2012-02-15 19:12 像块石头 阅读(14260) 评论(1) 推荐(0)