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. =) |
find / | grep httpd.conf and check the DocumentRoot option in the configuration file.
|
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"
|
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 |
[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. |
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. |