I'd like to setup Apache with vhost_alias support, AND, be able to accept
BOTH http://www.domain.com, as well as http://domain.com
is there a way for such to exist, with
vhost_alias ?
NameVirtualHost 203.41.6.80
# below directive works OK for http://www.domain.com
<VirtualHost 203.41.6.80:80>
# using /users/%domain%/web path, drop www. from browser
VirtualDocumentRoot /users/%2+/web
</VirtualHost>
# below directive works OK for http://domain.com
<VirtualHost 203.41.6.80:80>
# allow for hostless CNAMEs
VirtualDocumentRoot /users/%0/web
</VirtualHost>
how can I combine BOTH ?
ALSO, with vhost_alias support; how do I handle 'several doamin names to
one virtual host;
so:
www.a-name.com has 'real' structure;
www.b-name.com, www.c-name.com, etc, are all additional names that are to
serve www.a-name.com
how best to handle that with vhost_alias ?
Voytek Eymont
SBT Information Systems Pty Ltd
http://www.sbt.net.au/links/
phone +61-2 9310-1144 fax +61-2 9310-1118