On Wed, Jan 19, 2011 at 12:23 PM, Chad Sollis <[email protected]> wrote:
> 3) Set *.domain.com to CNAME to domain.com

I would recommend only using wildcards with A and AAAA records (where
possible) since wildcard CNAME records aren't supported by all DNS
servers.

> 4) I have a virtual host that will "accept" all domains without subdomains. 
> (where the rule below exists).  Default behavior is to redirect at the end to 
> a default domain assuming no matches.

I don't think it's good practice to do something like "ServerAlias
*.*.*.* *.*.*" since it will match even your other valid VirtualHost
entries. In the likely small chance that it does even work, it
definitely needs to be defined as your very last VirtualHost in the
order that your VirtualHost directives are parsed in the Apache
configuration so it doesn't fall into a recursive request loop looking
for a valid VirtualHost (and may still do so for the sub-domains you
haven't defined yet). I would really just avoid trying this
altogether.

Regards,
Bryan Petty

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to