In our office, we have a public facing server whose machine hostname is server16
. We want Apache to only respond to requests on server.example.com
. We have a VirtualHost
entry with ServerName server.example.com
. The problem is, if we include a VirtualHost
entry for server16.example.com
, then apache responds to it, so we have it respond with 403: Forbidden
, but we would like it to not accept a request to server16.example.com
at all.
We have talked with our system admins, and for certain reasons, we can't change the hostname of the server. Is there anyway within Apache to do what we need?