I am trying to set up an Apache Server on a CentOS 5.9 machine but I am not seeing the Apache test page when I get visit my machines IP Address on port 80 in my browser. Apache/httpd comes prepackaged with CentOS and I have already ensured the httpd service is running and NameVirtualHost *:80
has been uncommented in /etc/httpd/conf/httpd.conf
, Everything else is httpd.conf is set to the defaults. There are no errors in the httpd log and the service restarts fine. What am I doing wrong? Thanks.
To check if apache is serving the default page point your browser to http://localhost
. If you haven't a GUI you can access your server with curl localhost
which will print on your stdout the HTML code of your default page.
If you're trying to access to your server from a remote machine you should check if there's a running firewall and if the port 80 is opened iptables -vnL
. If not, open it with iptables -A INPUT -p TCP -m state --state NEW -j ACCEPT
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With