How to make the default virtual host return a 404 header in apache?
Posted
by
user59240
on Server Fault
See other posts from Server Fault
or by user59240
Published on 2011-02-04T23:20:44Z
Indexed on
2011/02/04
23:27 UTC
Read the original article
Hit count: 180
apache
I know that similar questions have been asked, but the available answers are not very clear, so please bear with me.
After setting up a few <VirtualHost>
s in apache, I'd like to configure the _defualt
_ ServerName so that it returns the 404 message. I.e., unless some explicitly available domain is specified in the Host http header, return 404. (Ideally something more direct than pointing to a now-nonexistent directory.)
Any help would be greatly appreciated.
© Server Fault or respective owner