Wednesday, June 27, 2007

Apache Tips

Tip 1. Configure Apache to require password for accessing a specific location
-------------------------------------------------------------------------------------------------------


Resource about configuring Apache to require password for accessing a specific location can be found here: http://www.freebsdonline.com/content/view/39/54/




Tip 2. Activate or deactivate listing of files within a directory
-------------------------------------------------------------------------------
To activate listing of files from your browser when accessing a specific directory from an Apache server,
within your tag for that specific path, add this:


Options Indexes FollowSymLinks


This will enable file listing for that directory.
If you have this enabled and you want to disable it change "Options" line with:


Options none


Tip 3. Howto Ignore .htaccess file for a specific directory
--------------------------------------------------------------------------
For example if you want Apache to ignore .htaccess file within a directory, between tags for that specific directory you will need the following line:


AllowOverride none