Friday, 15 January 2010

centos - How to get Apache Server to display test page -


I'm trying to set up an Apache server on a CentOS 5.9 machine but when I get it, I do not see the page Go to my machine IP address on port 80 in my browser, Apache / httpd comes with preconcise compose and I have already made sure httpd service is running and NameVirtualHost *: 80 Has been deprecated in /etc/httpd/conf/httpd.conf , everything else is httpd.confdefault There is no error in the Httpd log on set and the service restarts ok. What am I doing wrong?

To verify whether the epa serving the default page, http: / / Local host . If you do not have a GUI, you can access your server with Curl localhost , which will print your layout on the HTML code of your default page.

If you are trying to access a remote machine on your server you should check whether the firewall is turned on and if port 80 is opened then iptables -vnl . If not, open it with iptables -A INPUT -p TCP-M State- state NEW -J ACCEPT

No comments:

Post a Comment