[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] .htaccess
- Subject: Re: [cobalt-developers] .htaccess
- From: shimi <shimi@xxxxxxxxxxxxxxxx>
- Date: Sun Jul 15 04:36:01 2001
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
On Sun, 15 Jul 2001, Nabil Francis wrote:
> Hello,
>
> I'm very new to this list so I don't if my question is in the right place,
> but I'm sure that I will find some help here.
> So I was told that there some protection to a site if I just put 2 files in
> it to make it accessible by a username and password (.htaccess,.htpasswd)
>
> so I put the file .htaccess in the main directory of the site
that would be /home/sites/site12/web, yes?
>
> ------------------------------
> AuthUserFile /home/sites/site12/web/.htpasswd
> AuthName Some_Site
> AuthType Basic
Add here:
AuthPAM_Enabled Off
> <Limit GET>
> require valid-user
> </Limit>
> ------------------------------
>
> and I made a .htpasswd and put in the same directory listed above
>
> ------------------------------
> htpasswd -c .htpasswd some_user
> ------------------------------
>
> and tried to browse for the url hoping to see a window for a username and
> password but I didn't find anything to prompt me!!!!!
>
> So please can anyone tell me where I went wrong?
> I appreciate any help from you.
>
if u did all this, make sure the files are located where you think they're
located, as well as with permission to be read by the webserver
try refreshing the page, maybe you have a cached copy.
> Regards,
> Nabil
- shimi