didn’t think you could have two virtualhost entries with the same
IP/port. I would probably do this within with a single VirtualHost,
myself. Something like this combined with the RewriteRule:
RewriteCond %{HTTP_HOST} !^THE.CORRECT.HOSTNAME$
Rick Houser
Web Engineer
*From:*Dr James A Smith
The easiest way to do this is to make sure you have the correct hostname
in the virtual host - the one that matches your certificate and another
virtual host which has no hostname in it to catch all the other requests.
return a forbidden response for all requests!
RewriteEngine On
Rew