Apache2 only works locally

Support for webhosts that use CentOS
dnomdec
Posts: 8
Joined: 2008/08/01 21:55:34

Apache2 only works locally

Postby dnomdec » 2008/08/01 22:08:49

Hi all,

I ran into trouble trying to setup apache on centos4.6.

i can display

http://localhost
http://hostname.domain.com
http://127.0.0.1

fine, but ONLY on the machine I am trying to set up apache. But I cannot display anything when I try from any other machines. Chaning selinux to permissive did not help. Specifying the server name in httpd.conf did not help. Also checked selinux settings of /var/www/.

I tried this on 2 machines, both with centOS 4.6

First machine:
Server version: Apache/2.0.63
php-5.1.6-3.el4s1.9
pcre-4.5-4.el4_6.6
apr-0.9.4-24.9
apr-util-0.9.4-21
(All from centosplus yum repo)

Second machine
Server version: Apache/2.2.3-8
php-5.1.6-3.el4s1.9
pcre-4.5-4.el4_6.6
apr-1.2.7-10
apr-util-1.2.8-2
(php and pcre from centosplus yum repo; apache, apr and apr-util from rpms compiled for centOS4)

These two machines are behind a switch (linksys EZXS55W), NOT a router. Would the swich also cause problems?

Have been trying to solve this for days...Please help!

Ned

finnzi
Posts: 76
Joined: 2006/01/02 21:10:55
Location: Reykjavik, Iceland
Contact:

Apache2 only works locally

Postby finnzi » 2008/08/03 22:28:41

Hi,

Did you check if you have iptables running ? Try this: service iptables stop as root.

This will unload iptables.

Bgrds,
Finnzi