[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] AccesFileName directive [RAQ3]
- Subject: [cobalt-users] AccesFileName directive [RAQ3]
- From: Marco Baurdoux <linux@xxxxxxxxxxxxx>
- Date: Wed Oct 31 02:17:06 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Hi there,
In order to simplify the creation of .htaccess files and Errordocument
directives for our clients, I created a PHP-application.
The principle if extremely simple, I want to use two Access Files.
One .htaccess ( Fairly standard, for the security bit ),
the second one .hterror, which will contain the ErrorDocument directives.
Now according to my O'reilly Apache book one can configure this with this
line:
AccessFileName .htaccess, .hterror
Now my application creates the following .htaccess files,
order allow,deny
allow from all
require valid-user
AuthName "My zone"
AuthPam_Enabled off
AuthType Basic
AuthUserFile /home/sites/siteX/security/.htpasswd
And the application creates the following .hterror files,
Errordocument 401 /index.html
#ErrorDocument 403
ErrorDocument 404 http://www.demonstration.ch
ErrorDocument 501 http://www.demonstration.ch
but the person whom I replaced already created a simple security application
using these .htaccess directives :
# Access file for /home/sites/site3/stats (require group site3)
order allow,deny
allow from all
require group site3 admin
Authname CobaltRaQ
Authtype Basic
Now the file that I put in place via my application work fine. However the
previously created .htaccess files with the second type of syntax, stop to
work, UNTIL.... I remove the .hterror for the AccessFileName directive in
/etc/httpd/conf/srm.conf
What I meant is that the files remain, but Apache doesn't require an
authentication procedure anymore, and this only with the older htaccess
files ( second example ).
Does anyone have an idea, ??
Preferably on an Apache level, cause otherwise I would mean re-writing a bit
of my application :-))
=======================================================================
Marco Baurdoux
Unix Administrator
Infomaniak Network SA
Avenue de la Praille 26
1227 Carouge
Switzerland
Tel: +41 (0)22 820 35 41
Fax: +41 (0)22 820 35 46
http://web.infomaniak.ch
Linux/Unix is very user friendly,
it's just very picky about who its friends are !!!
=======================================================================