LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache Server Newbie (https://www.linuxquestions.org/questions/linux-software-2/apache-server-newbie-59099/)

Hollywood W 05-10-2003 05:03 PM

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. =)

markus1982 05-10-2003 05:06 PM

find / | grep httpd.conf and check the DocumentRoot option in the configuration file.

Hollywood W 05-10-2003 05:37 PM

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"

trickykid 05-10-2003 06:53 PM

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

Hollywood W 05-10-2003 10:04 PM

[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.

markus1982 05-11-2003 01:12 AM

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!


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