Ok number #1 never put a .htpasswd file in a web accessible directory. 

This is what I do:
Create (Sambar is on my D: drive set it to yours}
D:/sambar/access/ 

Now create sub dirs, use as many as you need for hosts.
access/site1/.htpasswd
access/site2/.htpasswd
access/site3/.htpasswd

Now you need a .htaccess and .htpasswd file the .htpasswd will look
something like this:

Peter:81489422D5167A34
Therese:81489422D5167A67
Kyle:AA5768A579A0C099
Connor:05A6100629997432
Baby:7B7DA7D1BFFDEBNV

Now the .htaccess file will look something like this:

AuthName "My Secret Stuff"
AuthType Digest
AuthUserFile D:/sambar/access/site1/.htpasswd
Require valid-user
AllowOverride none

Good luck,
Peter


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

> This is my .htaccess file.
> 
> AuthUserFile D:\data\.htpasswd
> AuthType Basic
> AuthName "Stock Order"
> require valid-user
> 
> Encrytion DOES come into play, I am using it.  It works fine for
> accessing the files in the directory shown, however if I copy and
> paste the same file to another location and place a php file in it, I
> can't access it with the proper credentials.  Thanks for your help.
> 
> -------------------------------------------------------
> To unsubscribe please go to http://www.sambar.ch/list/
> 
> 

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



Reply via email to