Default 403 response when no matching vhost

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

 



Figure I would ask this here for the most graceful answer before making up my own.  When running Apache for many vhosts (websites or acting as a reverse proxy), is there a way to make the default site (no matching vhost) return a 403 or 400 bad request similar to how Akamai does when no matching vhost is found. Currently I have a default site that just returns the standard "It works" 200 ok when no match is found..

SNIP: 
dig www.microsoft.com +short
23.66.54.52 (Akamai)

curl -kv 23.66.54.52
< HTTP/1.0 400 Bad Request
< Server: AkamaiGHost

thx in advance

Danny 

[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