Hard Hat Hosting - "Virtual Dedicated Server" web hosting

How can I configure my site to read from a different directory?

Original URL: http://help.hardhathosting.com/question.php/109

Although it is possible to change the initial directory (document root) that Apache uses to look for web pages, making this change is NOT recommended and may cause problems connecting to your control panel login as well as other issues.

We recommend that you keep your web content under the /var/www/html directory.  If you need to setup secondary domains, you can create sub-directories for them (such as /var/www/html/secondarydomain.com) and put their content in that directory.

If you still wish to change the document root, you will need to make changes to your httpd.conf file to include items that need to know the new doc root path. Please backup your httpd.conf file before making changes to it. This will allow you to revert back to the original, if you were to make a mistake.

Back to original article