Which Directory Service do you use for your network?
None NIS LDAP LDAP + Kerberos Samba Active Directory eDirectory other ( 712 votes ~ 14 comments )
You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.
To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.
This is the comment you were replying to, attached to the article Wildcard hosting with Apache and Bind:
#4 mod_vhost_alias Posted by jermen (213.195.xx.xx) on Thu 23 Feb 2006 at 13:22 Other way how to do this is use mod_vhost_alias and directive VirtualDocumentRoot, for example: <VirtualHost xxx.xxx.xxx.xxx> UseCanonicalName off VirtualDocumentRoot /var/www/%-2.0.%-1/%-3 </VirtualHost> Now you can use /var/www/mydomain.com/whatever as a content for whatever.mydomain.com. Main disadvantage is variable DocumentRoot which is taken from main configuration and it can be problem with some sites. It's also afaik impossible to log for each domain separately (only way is parse logfiles later).
<VirtualHost xxx.xxx.xxx.xxx> UseCanonicalName off VirtualDocumentRoot /var/www/%-2.0.%-1/%-3 </VirtualHost>
Posting Format:
Inappropriate comments will be removed.
Some help on entry formatting is available
Username:
Password:
[ Advanced Login ]
Register Account