FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hey all, im trying to learn Apache so i can serve my own web page.
A) Does anyone have a good site for tutorials using apache
B) Right how i can only access the index.html file (which i cannot find on my system), from http://127.0.0.1. So i wrote a 2 line html file and place it in /var/www/html/example.html.
I restarted the httpd server, and yet the same index.html file is still there, not my 2 liner??
What im pretty much looking for, is a step by step tutorial to configuring and using apache.
Or you can modify httpd.conf to include example.html in the search list (just kidding). By default, Apache only searches for a limited list of .html files.
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??
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!!
josh
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.