Apache Security

apache

How to disable hostname lookup?

I STILL HAVE TO COMPLETE THIS.

If no ServerName is specified, then the server attempts to deduce the hostname by performing a reverse lookup on the IP address. Remember that millions of requests had a host name that would need to be looked up. After consulting the documentation, I setup a virtual host that would quickly return a 404 error for the request and display a special message at the root directory. Here’s what it looks like:

<VirtualHost _default_:80>
    ServerName default
    DocumentRoot "/Web/Sites/default"
    <Directory "/Web/Sites/default">
        Options None
        AllowOverride None
        DAV Off
    </Directory>
    LogLevel warn
</VirtualHost>

See http://furbo.org/2015/01/22/fear-china/

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License