[nzlug] apache2 mod_vhost_alias query

razza razza at razza.org
Tue Nov 28 15:19:12 NZDT 2006


Hey Guys,

I want to use mod_vhost_alias for mass virtualhosting.
"http://httpd.apache.org/docs/2.0/mod/mod_vhost_alias.html"

take a url like www.example.com I want to set the virtual doc root to:
/var/www/vhosts/example.com/htdocs

Also if I have a domain www.example.co.nz I want to set the virtual doc root to:
/var/www/vhosts/example.co.nz/htdocs

The problem I have is since *.co.nz has an extra "." seperator I cant seem to
pattern match them both as there isn't much flexibility (sorely lacking nice
regex in mod_vhost_alias) has anyone figured a way around this? Is there
something else I should be using?

Regards

Robert






More information about the NZLUG mailing list