DOCROOT in subdomains outside DOCROOT of main domain

obeer

New member
Joined
Sep 21, 2006
Messages
1
Location
PL
Hello,

I tried to read docs about such config but haven't found any. So I post it to this forum.

Has anyone tried to do the following:

<VirtualHost x.x.x.:80>
ServerName www.domain.com
DocumentRoot /home/user/domains/domain.com/public_html/www

[..]
</VirtualHost>

<VirtualHost x.x.x.x:80>
ServerName www.sub.domain.com
DocumentRoot /home/user/domains/domain.com/public_html/subwww

[..]
</VirtualHost>

When I put DOCROOT=/home/user/domains/domain.com/public_html/www
to domain.com.custom_httpd it inserts:
DocumentRoot /home/user/domains/domain.com/public_html/www - o.k. for the first virtualhost and
DocumentRoot /home/user/domains/domain.com/public_html/www/subdomain

Any idea how to make it working like I want ?
 
Back
Top