Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ISPConfig change "Document Root" for specific domain

How to change the Document Root for a specific domain/subdomain inside ISPConfig 3.

I need to point my subdomain to a different directory than the standard client3 web6 roots.

And in "ISPConfig 3" this field isn't editable, neither during creation nor afterwards.

like image 661
Mohd Abdul Mujib Avatar asked Dec 02 '22 12:12

Mohd Abdul Mujib


1 Answers

The solution was pretty simple, All I had to do is, once the domain was created, I had to navigate as below..

Select that domain > Options > Apache Directives

And paste the following line where the root of the domain/subdomain would be adjusted accordingly. I wanted to point the domain to rainloop installation which was outside the Default Web Root directory /var/www/html.

DocumentRoot "/var/www/rainloop/"

Have written this Q/A as a documentation as in-spite of it being so simple, this solution isn't documented anywhere.

like image 55
Mohd Abdul Mujib Avatar answered May 19 '23 15:05

Mohd Abdul Mujib