>>>>> "Deepan" == Deepan <[EMAIL PROTECTED]> writes:
Deepan> Hi All, I am serving two domains from the same machine using
Deepan> Apache. I want www to be used in both of the domains, hence I
Deepan> redirect urls without www to appropriate urls with www. I have
Deepan> the following configuration in httpd.conf to achieve this.
Deepan> NameVirtualHost *:80
Deepan> <VirtualHost *:80> DocumentRoot /var/www/html/domaina/
Deepan> ServerName www.domaina.com
Suggest you add
ServerAlias *.domaina.com
ServerAlias domaina.com
and likewise for domainb.com
Otherwise, any unrecognised name will go to the default (first)
config.
--
Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au ERTOS within National ICT Australia
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html