I'd suggest trying to get the .htaccess working by using a basic html page
first. .htaccess is simple to use regardless of the encryption type but
you must do the basics first and make sure that you are not overlapping
another security type on the same directory. I use .htaccess on all of my
vhost member area's but each vhost also has an /admin/ directory that is
protected via the security.ini

[restrict]
/admin/ = root

To be successful in getting .htaccess working you must have the correct
setting and paths. If it works in one directory and not another I'd be
checking to see if I can access that directory without the .htaccess first
then try a basic page with .htaccess.

When in doubt read:
http://localhost/syshelp/sec.htm
and 
http://192.168.0.4/syshelp/htaccess.htm

Peter



-----Original Message-----
From: [EMAIL PROTECTED] (woodsman)
To: "sambar List Member"  <[EMAIL PROTECTED]>
Date: 21 Apr 2004 03:45:59 +0200
Subject: [sambar] htaccess sambar and php

> Sorry, my bad.  The htpasswd file is not in a web accessable dir.  But
> the point here is that I can't seem to use the same htaccess file in
> the ways that I have mentioned.
> 
> The orginal .HTACCESS file resides in a cgi-bin directory for a
> particular vhost.  The .HTPASSWD file for it, contains over 50
> functional user/password combinations.  As stated, I have Sambar
> using unix encryption via the config.ini file.
> 
> If I take the very same .HTACCESS file and put it in a new directory,
> stick a test.php file in it and test, I'm prompted for credentials.  
> User & password combos that work to access the first directory DO
> NOT work to access the second directory.
> 
> -------------------------------------------------------
> To unsubscribe please go to http://www.sambar.ch/list/
> 
> 

-------------------------------------------------------
To unsubscribe please go to http://www.sambar.ch/list/



Reply via email to