我要apache做这个>
mydomain.com:80 --- opens var/www1
mydomain.com:81 --- opens var/ww2
mydomain.com:82 --- opens var/www3
问题是我不知道这些端口是否在Linux上打开(如何检查?)
如果不是,我该如何在防火墙中打开它们并让Apache收听?
我尝试这样做
> iptables -A RH-Firewall-1-INPUT -m NEW -m tcp -p tcp –dport 81 -j ACCEPT
iptables v1.3.5: Couldn't load match `NEW':/lib64/iptables/libipt_NEW.so: cannot open shared object file: No such file or directory
我检查了端口...好像httpd在监听...但我不知道为什么我无法打我的URL
> netstat -tulpn | less
tcp 0 0 :::80 :::* LISTEN 6840/httpd
tcp 0 0 :::81 :::* LISTEN 6840/httpd
tcp 0 0 :::82 :::* LISTEN 6840/httpd