Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
I installed apache webserver at install time for my red hat 8.0 server. I configured apache correctly to just respond to my outside ip address <not 127.0.0.1>. However, I went to copy my webpage to the /var/www/html/ directory, and there were only more directories in it <such as manual, etc.> but no index.html. I tried copying my web page to it anyways, named it index.html, and it still wont come up by default, I have to physically type "http://<ip address>/index.html to have it come up. If I just type the ip address, it comes up with the test page. I have the document root set to /var/www/html, and the default home page set to index.html. I tried searching for any other files named index.html on the computer, but could not find the test page. Does anyone know how to fix this besides reinstalling the whole computer, I tried to rpm out the httpd, then put it back, but to no avale
What does your DirectoryIndex line hold in httpd.conf? It sounds all a bit weird to me like it might be an problem in your apache config. Post a copy of httpd.conf if possible. Also can you lookup and reverse lookup your name/ipaddress - and does this correspond to the ServerName value that you have set in httpd.conf?
I had exactly the same problem with Apache 2.0.40. When using the graphical interface to reconfigure httpd, it wipes out all manually-configured everything and starts over, if you're not careful. Well, I wasn't careful, and couldn't figure out for the life of me what the heck happened. Thanks so much for the simple solution. Whew! Back in bidnith.
Quote:
Originally posted by hotrodowner in httpd.conf it had:
DirectoryIndex
and that was it. so I just added:
DirectoryIndex "index.html"
and it works! how come on some installations, it had thatline correct, but on this, the default was nothing? Well, thanks for the help!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.