Go Away Apache Welcome Page

1870 pts.
Tags:
Apache
Apache 2.2.3-31
Linux
Linux configuration
I just did a fresh install of CentOS 5.4 i386 last week and so far I have failed to get the Apache welcome page (Apache 2 Test Page)  to go way. Apache version is 2.2.3-31. Trying to access any anther page brings up not found error. I have verified my index.htm file is in the directory specified in the DocumentRoot setting of the httpd.conf. I have also verified that every directory from / to html has r & x permissions for all and that the index.html file has r for all. Any suggestions?

Software/Hardware used:
CentOS 5.4, Apache 2.2.3-31

Answer Wiki

Thanks. We'll let you know when a new response is added.

I first start by commenting out the lines in /etc/httpd/conf.d/welcome.conf to disable the default page. It’s good to have it in the beginning to know you have Apache working, but after that it can safely be disabled.

Make sure the <b>DirectoryIndex</b> directive includes ‘index.html’ or whatever.whatever you wish to load by default when one is not specified:

DirectoryIndex index.html index.html.var

You say index.htm in one sentence, but index.html in another. If it’s index.htm, then it won’t load by default until you add it to the DirectoryIndex.

Do the following and copy the output to your next reply if you’re still having problems:

cat /etc/httpd/conf/httpd.conf |grep -v ^# |grep -v ^$

Look at /var/log/httpd/error.log for more information. At the command line, you can do ‘tail -f /var/log/httpd/error.log’ and then open the URL and look at the output as it happens to see what errors are being generated.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Gent01
    BTW, I have done plenty of google searching and haven't been able to come up with anything close to what I am looking for.
    1,870 pointsBadges:
    report
  • Gent01
    Thanks Opnsrc. After checking all those things and a coupple more, I found out selinux was blocking httpd's access to the dir.
    1,870 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following