We have been using the VirtualDocumentRoot as describe below for some time.=
It handles two level domain names with a sub domain just fine. If the dom=
ain is www.domain.tld or domain.tld, it is mapped to /exports/home/domain.t=
ld/virtualdomains/www.domain.tld and /exports/home/domain.tld/virtualdomain=
s/domain.tld, respectedly.
VirtualDocumentRoot /exports/home/%-2.0.%-1/virtualdomains/%0
VirtualScriptAlias /exports/home/%-2.0.%-1/virtualdomains/%0/cgi-bin
Recently, we had a need to create a 4th level sub domain. That is, www.sub=
domain.domain.tld. For isolation reasons, we needed to put this outside of=
the normal file process such that the directory is /exports/home/subdomain=
..domain.tld/virtualdomains/www.subdomain.domain.tld.
Now, if it's a sub domain, we still want it to go to the /exports/home/doma=
in.tld/virtualdomains/www.domain.tld.
So, what we are looking for is a way to have 4 position domains use it's ow=
n VirtualDocumentRoot (and alias) whereas 2 and 3 position domain names wil=
l use the original logic.
It's this type of configuration possible?
Gary Smith
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
