diff options
Diffstat (limited to 'network/mod_hosts_access/mod_hosts_access.conf')
-rw-r--r-- | network/mod_hosts_access/mod_hosts_access.conf | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/network/mod_hosts_access/mod_hosts_access.conf b/network/mod_hosts_access/mod_hosts_access.conf new file mode 100644 index 0000000000..da8e6b3a76 --- /dev/null +++ b/network/mod_hosts_access/mod_hosts_access.conf @@ -0,0 +1,17 @@ +# Apache config for mod_hosts_access + +LoadModule hosts_access_module @baselibdir@/httpd/modules/mod_hosts_access.so + +<Directory /> + HostsAccess On + Options FollowSymLinks + AllowOverride None +</Directory> + +# To test, restart apache for it to load the module; edit /etc/hosts.allow +# adding a line like the following: +# httpd: localhost: deny +# Access from 'localhost' (127.0.0.1) should now be disallowed, thus requesting +# the index page should fail, to verify try: +# lynx -dump localhost +# The same can be done in a .htaccess file if AllowOverride Limit has been set. |