Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

.htacces dont' work inside /perl dir

Quote Reply
.htacces dont' work inside /perl dir
May be I'm a little off-topic.

I can't understand why Apache don't care about the .htaccess I used into the perl directory (mod_perl).
I tryed several ways and I know should be a 'AllowOverride' misconfiguration on the httpd.conf but everithing seems ok....

<IfModule mod_perl.c>
Alias /perl/ /var/www/perl/
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
PerlModule Apache::DBI
PerlModule CGI
Options +ExecCGI
</Location>
</IfModule>


Does anyone know how to allow Location to take care also of all .htaccess?



Thank you in advance


lepo

Lepo - lepo@lepo.org
Quote Reply
Re: .htacces dont' work inside /perl dir In reply to
We really should have a separate topic for mod_perl issues, since they are both specific to Links SQL and generic at the same time.

.htaccess/security files should work across the server. That is a top-level process ie: access/authentication that occurs BEFORE any attempt to do file access or serve files.

Make sure your basic system is set up properly, and that you have your server set to recognize .htaccess files in either the global tree, or in your local directory.

I don't use .htaccess, since in reading the docs there is a minor performance hit as the server checks up through each level of access (and some of my levels go deep) and I only need security on the various cgi- directories. I do all my security in the httpd.conf file.

Here's a sample of my long-gone minivend config:

<LocationMatch /cgi-bin/simple/+(admin|config)>
AuthType Basic
AuthUserFile /path/to/server/postcards/cgi-bin/simple/.htpasswd
AuthGroupFile /dev/null
AuthName "MiniVend Administration"
require valid-user
</LocationMatch>


You can probably do the same sort of authorization in the <LOCATION> tags.

Things are a mess here, and I can't locate my good Apache docs book to check for sure, but it might be worth a try.




http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/