mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-28 10:02:43 +01:00
17 lines
582 B
Text
17 lines
582 B
Text
# 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.
|