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 know my index file is located under /var/www/apache2-default/ but when I move it to /var/www/index.html , and then restart the httpd service, it will not display my index.html file.
Anyone know how to fix this so it's just under the /var/www/ directory?
I have Apache 1.3.33 on my system, but I assume the config file for Apache 2 is somewhat similar. In your httpd.conf (or equivalent for Apache 2) is there a DocumentRoot setting? Maybe try changing that to /var/www and see if that helps.
There are sometimes several conf. files, collected by one of them through include statements. So look through the others, e.g. default-server.conf, httpd.conf etc..
If you have an old version of Apache, you may have 3 configuration files: httpd.conf, access.conf and srm.conf and the DocumentRoot should be in srm.conf I think.
A google for "change apache2 default root" may help you - it brings back the exact answers. I had this problem when I moved to Apache 2. Also, maybe read Apache 2 docs to get a better understanding of the whole service to explain away other little niggly issues like your icons folder from another thread.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.