LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-10-2003, 06:03 PM   #1
Hollywood W
LQ Newbie
 
Registered: Feb 2003
Distribution: Red Hat 8.0
Posts: 27

Rep: Reputation: 15
Apache Server Newbie


By Default, I'm trying to find out where the index.html is stored on my RedHat 8 machine. I was told that it is inside the /var/www/html but I can't seem to find it. I just want to know where I would store my homepage html so that apache will recognize it when my URL is http://localhost:80.

Any sort of feedback will be appreciated, thanks for reading this. =)
 
Old 05-10-2003, 06:06 PM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
find / | grep httpd.conf and check the DocumentRoot option in the configuration file.
 
Old 05-10-2003, 06:37 PM   #3
Hollywood W
LQ Newbie
 
Registered: Feb 2003
Distribution: Red Hat 8.0
Posts: 27

Original Poster
Rep: Reputation: 15
I looked it up and it tells me it's /var/www/html, but I still don't see "index.html", I just want to overwrite the "Test Page" from when I type in "http://localhost:80"
 
Old 05-10-2003, 07:53 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
If you have that directory, why not just place a "index.html" in there, it should read that by default. Sometimes the initial default page is named "index.html.en" as there are many index pages for different languages.

Can you output this command for us:

ls -al /var/www/html
 
Old 05-10-2003, 11:04 PM   #5
Hollywood W
LQ Newbie
 
Registered: Feb 2003
Distribution: Red Hat 8.0
Posts: 27

Original Poster
Rep: Reputation: 15
[wpei@localhost html]$ ls -al /var/www/html
total 20
drwxrwxrwx 5 root root 4096 Feb 11 00:10 .
drwxrwxrwx 8 root root 4096 May 10 18:29 ..
lrwxrwxrwx 1 root root 24 Feb 10 23:49 htdig -> ../../../usr/sh are/htdig
drwxr-xr-x 2 root root 4096 Feb 10 23:58 mrtg
drwxr-xr-x 2 webalizer root 4096 Feb 10 23:39 usage
drwxr-xr-x 2 root root 4096 Feb 11 00:10 wordtrans
[wpei@localhost html]$

I wrote an index.html file but for some reason it's not displayed on this list.
 
Old 05-11-2003, 02:12 AM   #6
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
well if index.html is a part of the DirectoryIndex configuration option and /var/www/html is the DocumentRoot and you have set permissions correct it WILL display it. So check all of this!
 
  


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
Newbie Configuration of Apache Server tspeicher Linux - Newbie 26 05-06-2005 01:41 AM
problems setting up apache and vsftp server behind a router that serves as a server xone Linux - Security 1 04-08-2004 11:46 AM
Could someone direct me to a Newbie Friendly Apache Server installation page? Em3rald Linux - Software 2 03-25-2004 11:25 PM
libmm. for apache server:newbie: rinux Linux - Software 0 05-23-2003 08:40 AM
Newbie Here . . . Having Problems with Apache Server Config and DNS. flem26 Linux - Newbie 6 03-08-2003 08:37 PM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration