[Hampshire] httpd default/catchall Virtual hosts

Top Page

Reply to this message
Author: Stephen Davies
Date:  
To: hampshire
Subject: [Hampshire] httpd default/catchall Virtual hosts
Here's the scenario

A number of Domains have been defined using DYNdns. They all point at
one IP address.
At that address is a Netgear Router that is configured to port forward
all port 80 requests to the Linux Server where the http server is running.

The httpd.conf on that server is configured with virtual hosts for each
of the Domains setup in DynDNS. Ok. Everything works.

What I'm struggling with is defining a Virtual host that will act as the
default/catchall destination. For example for the myriad of port
scanners etc that will just use the IP address and see what responds. I
want to send them a 404 or something similar back, essentially telling
them to P**s off.

I still want to allow requests for tools like phpMyAdmin to be allowed
through from the local subnet (eg 10.10.2.*) when requested by
http://10.10.2.10/phpMyAdmin
I'll probably change the app name for phpMyAdmin though when this gets
into production.


Any suggestions most useful.

Stephen D