httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Coby" <>
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


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message