Re: Cacthing hosts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux