Reputation: 7092
I have a VPS with root access, and I'm wondering if it is possible to assign a domain name to a directory that is further than 2 levels deep. It is an Apache server running on CentOS.
For example...
/developers/travis/clients/clientSite
The cPanel only lets me assign domains to the travis directory, no further. Is there a configuration file that I can get to and modify so I can assign domains to clientSite directory?
Upvotes: 10
Views: 167
Reputation:
if you have a VPS the correct way is install a CPanel to easy manager it.
And
On CPanel you can change the root folder of a secon domain and put the on lvl you need:
Upvotes: 1
Reputation: 1600
Apache allows using any directory as document root for you site. So if you edit configuration file (for cPanel they are located in /usr/local/apache/conf/) and restart apache, it will work. But it is not recommended to perform manual config changes, if you are using cPanel.
Upvotes: 1