.htaccess files don't work; how to block IP access in Apache
- Article Type: General
- Product: Aleph
- Product Version: 20
Description:
How can we block IP access in the Aleph Apache? (Our .htaccess files don't work.)
Resolution:
The Apache that is bundled with Aleph is configured to specifically not process .htaccess files: the "AllowOverride" directive is set to "none". That's why the .htaccess file wasn't being used.
This is what is currently in the Aleph httpd.conf file:
<Directory "...">
Options FollowSymLinks MultiViews
AllowOverride None
Order deny,allow
Allow from all
</Directory>
To enter the block directly in httpd.conf (for ip addresses beginning with 124.115), you need to do this:
<Directory "...">
Options FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
Deny from 124.115
</Directory>
- Article last edited: 10/8/2013