VDS Sphera Knowledge Base

Main / Browse Categories / Apache / How can I configure my site to read from a different directory?

Print article Print Article    Email article Email Article

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

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.

User Comments
How can I configure my site to read from a different directory?  
There are no user comments for this topic.
 

Attachments
No attachments.

Related Articles
 Where is the Apache httpd.conf file located?
 How do I restart Apache?
 How can I create a Script Alias in Apache to Neomail?
 How can I prevent Directory Listing?
 How do I prevent hot linking of my pictures, movies, or other files?

Why Choose Our Hosting?

  • Unmatched Customer Support!
  • Virtual Private Server technology provides a rich, dedicated-like environment for every account.
  • We are known for our superb quality, performance and flexible hosting environment. We manage the server, software, and network you do the rest.
Continue reading »

Featured Hosting Plan


Learn more about our VPS Extreme

What is Included?

  • PHP 5/MySQL 5
  • Parallels® Plesk Panel 10
  • Unique IP Address
  • Daily VPS Backups (Off Server)
  • SAS Hardware Raid diskspace
  • CentOS 5 x86_64 bit
  • Multi-homed Tier 1 Bandwidth
  • Full Upgrade capabilities
Continue reading »