LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   adding index.html to /var/www/html not working (https://www.linuxquestions.org/questions/linux-newbie-8/adding-index-html-to-var-www-html-not-working-588375/)

dannyboy990 09-30-2007 07:57 AM

adding index.html to /var/www/html not working
 
Hello guys, i am very new to linux. I had just purchased a VPS for my website. This means i have to do all the installation myself. It came though with apache installed and when I enter to the website I receive the following message:
"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 web server installed at this site is working properly, but has not yet been configured."

Happy that it seems to work I added just to test an index.html file in the /www/html directory but that didn't seem to do the trick and I always get the same above message. It also says that:"o prevent this page from ever being used, follow the instructions in the file /etc/httpd/conf.d/welcome.conf."

I followed the instructions and I still get the same test message!

I am sure i'm doing something wrong. Can anyone help?

dafunks 09-30-2007 08:43 AM

Apache does not always use the path of /var/www/ .. sometimes it will be /srv/www/ by default or other varients. Check httpd.conf in /etc/httpd .. look for the line identifying your document root:

DocumentRoot "/srv/httpd/htdocs"

On my system, the html files are placed in the above folder.

Also, make sure you are removing the default,htm or index.htm files as it might be set higher in the config and overrule the index.html file you are trying to view.


All times are GMT -5. The time now is 10:09 PM.