Apache setups and tricks

For changing the main/primary domain, you will need to have root SSH access and
be able to locate and edit the following file (replacing your user & domain


1. Once you have opened the file, look for the following line:

documentroot: /home/USERNAME/public_html

2. Modify the location according to your needs. Save it and exit.

3. Rebuild the Apache conf and restart Apache:

service httpd restart

The change will be immediate. Simply clear your browser cache and force refresh
the page.

Sub domains in apache——

How to set up suexec to work with virtual hosts and PHP—-


Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *