httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Coby" <jc...@listingbook.com>
Subject Re: [users@httpd] Apache 1.3.20 and .htpasswd
Date Tue, 21 Jan 2003 15:11:16 GMT
> I'm having some difficulties with a hosting company I've been stuck
> with.  I have a site designed using PHP/MySQL and am now trying to put a
> password on one of the directories.  Normally I do this using PHP and
> Sessions, but for some unknown reason it's just not working and my client
> is becoming increasingly bitter about this.

You also need to put a .htaccess file in the directory you want to password
protect.  It should say something along the lines of:

--
AuthName "Your Description Here"
AuthType Basic
AuthUserFile /home/sites/site140/web/mcx/.htpasswd
require valid-user
--

-Jacob


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message