既然用了nginx,为啥用户还可以直接访问apache的8080端口呢?那nginx不是被绕过了嘛?我猜你是想不让用户直接访问apache的8080端口??如果是Linux服务器的话可以使用iptables禁止外面访问8080端口,iptables -t filter -A INPUT -p tcp -m tcp --dport 8080 -s localhost -j ACCEPTiptables -t filter -A INPUT -p tcp -m tcp --dport 8080 -j REJECT可以参考下http://blog.lifw.org/post/19180849这篇文章
既然用了nginx,为啥用户还可以直接访问apache的8080端口呢?那nginx不是被绕过了嘛?
我猜你是想不让用户直接访问apache的8080端口??
如果是Linux服务器的话可以使用iptables禁止外面访问8080端口,
iptables -t filter -A INPUT -p tcp -m tcp --dport 8080 -s localhost -j ACCEPT
iptables -t filter -A INPUT -p tcp -m tcp --dport 8080 -j REJECT
可以参考下http://blog.lifw.org/post/19180849这篇文章