Stop *all* requests to IP-only GET requests in apache?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Brian Cluff
Date:  
Subject: Stop *all* requests to IP-only GET requests in apache?
> Offhand, I'm wondering if it's possible to reject all GET requests that use
> only my IP address and not one of my virtual hosts. Currently, these
> requests just get routed to my first virtual host (www.granroth.org)... but
> what I would like is for them to get a dropped TCP connection or a refused or
> something. There is really no good reason for anybody but me to be accessing
> my web server using the IP address.
>
> Any thoughts?



In theory you can use domain based virtual hosts and setup the first
<VirtualHost> section to deny everyone that hits it. That way when apache
doesn't find a match for the name, it server up the first one and it kits
an ACL and dies.

Sorry for not being more specific, but its waaaaaaaaaay past my bedtime
and my brain is foggy.

Brian Cluff