View Single Post

  #1 (permalink)  
Old 08-13-2005
Ladislav Durchánek
 
Posts: n/a
Default DNS wildcards with mod_vhost_alias

Hi, is it possible to configure mod_vhost_alias to translate:
- www.somedomain.net => /home/somedomain.net/www
- subdomain.somedomain.net => /home/somedomain.net/somedomain
- somedemain.net => /home/somedomain.net/www
?
I get to:

VirtualDocumentRoot /home/%-2.0.%-1/%-3+

but if no third part from last is present, Apache replaces it with
underscope. I need to tell Apache to replace it with "www". Or should i use
mod_rewrite instead?

Thanks for an advice