archives

configuring htaccess restrictions on debian apache2 server

Communications | Debian Support | Support

This is a quick guide on how to set up htaccess restrictions on a directory located on a server running apache2 with a debian OS.

First, you will need to update the httpd.conf file, which should be located in the apache2 directory, as follows:

&#60Directory (directory to be protected)&#62
Options Indexes Includes FollowSymLinks Multivews
AllowOverride AuthConfig
Order allow,deny
Allow from all
&#60/Directory&#62

Make sure to take out the "" they are only included so this post displays properly.

Once this update is saved, restart the apache2 server with the following command, or something like it depending on your setup, as follows: