custom vhost

Mitch

Verified User
Joined
Apr 16, 2013
Messages
75
Hi,

I want to have a custom vhost.
I know there is a Httpd.conf Customization but this won't allow me to add a subdomain with an other root dir.

url: subdomain.domain.com
location: /home/user/domains/subdomain/

What is the best solution for this? I tried to just edit the vhost file of that domain, but after every change its gone.
 
Hi,

I want to have a custom vhost.
I know there is a Httpd.conf Customization but this won't allow me to add a subdomain with an other root dir.

url: subdomain.domain.com
location: /home/user/domains/subdomain/

What is the best solution for this? I tried to just edit the vhost file of that domain, but after every change its gone.
The simplest solution is to add subdomain.domain.com as a new domain. You will end up with something like:
/home/user/domains/subdomain.domain.com/public_html
 
Back
Top