On Feb 26, 2010, at 11:57 AM, Nilesh Govindarajan wrote:

> Hi,
> 
> I have two domains, example.net and example.com
> 
> *.example.net & *.example.com point to the server's IP (Wildcard CNAME).
> 
> Now only some subdomains like www, img, etc. are defined on both domains.
> 
> I want to catch all other subdomains not configured and raise a 404 error.
> 
> How to ?

You'll need two virtual hosts - one for the "good" hostnames, identified with 
ServerAlias directive(s). Another for everything else, identified with 
ServerAlias *.example.com


Reply via email to