LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-30-2007, 07:57 AM   #1
dannyboy990
LQ Newbie
 
Registered: Sep 2007
Posts: 1

Rep: Reputation: 0
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?
 
Old 09-30-2007, 08:43 AM   #2
dafunks
Member
 
Registered: Sep 2007
Location: UK
Distribution: Slackware 12
Posts: 62

Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory index forbidden by rule: /var/www/html/ danimaldaisy Linux - Networking 6 02-11-2008 01:32 AM
NameVirtualHost not working: Akways default to /var/www/html Swakoo Linux - Server 6 04-09-2007 04:09 AM
php move_uploaded_file() not working in /var/www/html jon23d Linux - Software 1 06-07-2006 10:25 AM
index.html is not noticed in /var/www/html xviddivxoggmp3 Red Hat 1 04-23-2006 06:30 PM
help in /var/www/html/!! chidomen Linux - Newbie 4 01-13-2005 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration