Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Based on this tutorial installed Apache-based CentOS Server

I use putty.exe as editor

vi /etc/httpd/conf/httpd.conf at very bottom modified to

<VirtualHost *:80>
    DocumentRoot /var/www/
    ErrorLog /var/www/
    CustomLog /var/www/ common

So expect that index is at /var/www/

When in browser type ip address of server, see Apache 2 Test Page powered by CentOS and so on You may now add content to the directory /var/www/html/


[root@vps ~]# ls /var/www/


cgi-bin  error  html  icons 

Checking content of directories

ls /var/www/, ls /var/www/, /var/www/html/ are empty

Where is index.html?

Did touch /var/www/ then vi /var/www/, typed a, then wrote some text in file, then Escape and shift+zz. And in browser and see what I had wrote. So until now seems that all works

share|improve this question

closed as off-topic by MadHatter, Jenny D, mdpc, Ward, Dave M Oct 23 '13 at 18:23

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – MadHatter, Jenny D, mdpc, Ward, Dave M
If this question can be reworded to fit the rules in the help center, please edit the question.

It doesn't exist, according to what you've posted. Is there anything that makes you think it does? – MadHatter Oct 22 '13 at 15:00
I am newbie. No so much knowledge (simply did all according to tutorial; Do not know (think) if index.html must exist). Will try to create new file and check if in browser address bar can access it.. – user2118559 Oct 22 '13 at 15:16
up vote 1 down vote accepted

The ErrorDocument you're seeing (see John's post) is a special piece of configuration that's installed in CentOS/RHEL by default. If you want to disable it, blank out the contents of /etc/httpd/conf.d/welcome.conf. (Don't delete the file, because RPM will just put it back the next time you upgrade the httpd package.)

share|improve this answer

The "Apache 2 test page" is the error document. It is not an actual page.

share|improve this answer
I read This page is used to test the proper operation of the Apache HTTP server after it has been installed. If you can read this page it means that the Apache HTTP server installed at this site is working properly. I have seen such pages before and does not seems error page – user2118559 Oct 22 '13 at 15:18
It is the error page. Look for the ErrorDocument directive in your configuration. That directive points you to a file that contains the test page. What the page actually says has nothing to do with where the page is coming from. – John Oct 22 '13 at 15:24
Oh. Does it means that I installed incorrectly? – user2118559 Oct 22 '13 at 15:33
The page being displayed means that it is installed and is serving documents (including the configured ErrorDocument). – John Oct 22 '13 at 16:34

Not the answer you're looking for? Browse other questions tagged or ask your own question.