Originally posted by blizunt7
your saying that when i want to add a page it can only be named index.html???
And in the /etc/httpd/conf/httpd.conf file i have listed as document root "/var/www/html"
IN this file i have example.html, which i will rename index.html. Is this correct??
Thanks so much!!
Apache will display any *.html (and *.htm) and serve any file you care to name.
However, when you go to the url: http://127.0.0.1/
Apache (running on you local machine) will give you a default page for that folder (There was no mentioning of any file in that request, so apache will use the default. If (AND ONLY IF) that fails, Apache will list the contents of the folder, if it has parissions to read it.).
The list mentioned in the earlier post is part of the Apache configurtation file(/etc/httpd/conf/httpd.conf). This is the list of default names Apache will use. If Apache cant find a index.html in the dokument root (whitch is typically /var/www/html/ on a Fedora box), it will use the next in the list. (Next in that list, is probably index.htm. possibly followed by default.html...)
If you tried to look at http://127.0.0.1/example.html
you would get your example.html.
And naturally, the same goes for any other file under the document root.