[sllug-members]: Multiple Domains - Apache

Kyle Waters unum at unum5.org
Tue Apr 29 09:25:53 MDT 2008


Adam Barrett wrote:
> I am unsure of all the ReWrite stuff... seems excessive to me, I could
> be crazy though..
>   

I generally just set servername to domain.com and set the alias to 
*.domain.com. Except on one site where I was too cheap to buy a wildcard 
domain cert.  So there I have set up two virtual hosts and told 
domain.com to redirect to www.domain.com.

But anyways what is happening is you need to set an alias in 
www.domainb.com(alias domainb.com) so that apache will match that 
virtual host, so the redirect will work.  Right now apache is looking at 
that virtual host and seeing that domainb.com does not match 
www.domainb.com and invoking the default virtual domain(which is 
www.domaina.com).

Kyle


More information about the sllug-members mailing list