httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rich Bowen <rbo...@rcbowen.com>
Subject Re: [users@httpd] Cacthing hosts
Date Fri, 26 Feb 2010 17:06:20 GMT

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



Mime
View raw message