apache2 running but can't visit anywhere
I am try to run two web applications on a Linux Server,one is jsp,another is php. So I installed tomcat5(use:80) and apache2(:use 8081) on the linux, without doing any things to combine them. (I just want to them do their own job) Now,the problem is : tomcat works well,but I can't even vist apache default page by browser,although apache start OK ,no error report,the 8081 port is listening(use netstat -an |grep 8081),the process of httpd is running. Quote:
ps:I install apache on another linux mathine ,same tar.gz ,same change to /apache/conf/httpd.cnf . And it works well. I am a Newbie for linux httpd,so ,any advise is helpful .Thanks anyway. |
this is my service iptables status
Quote:
|
Appears to be a rule to accept traffic on port 80.. so I would think you need a rule to accept traffic on port 8081
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:80 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:8081 |
sorry did u show the commond ?
i tried this Quote:
|
I'm no expert but I think it would be something like...
iptables -I RH-Firewall-1-INPUT 10 -p TCP -s 0/0 --destination-port 8081 -j ACCEPT I'm sure someone will correct me if this is wrong... (please do) |
thanks very much!! Farslayer ,it works.
|
All times are GMT -5. The time now is 05:17 AM. |