Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Oct 1997 10:39:41 -0700 (PDT)
From:      Doug White <dwhite@gdi.uoregon.edu>
To:        Enrique Krajmalnik <ekraj@illumen.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Password protected web site
Message-ID:  <Pine.BSF.3.96.971014103726.2456O-100000@gdi.uoregon.edu>
In-Reply-To: <3442F836.698@illumen.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 13 Oct 1997, Enrique Krajmalnik wrote:

> I am having two problems setting up a web site with password protection. 
> 
> 1. I have added the -lcrypt option under CFLAGS to compile the htpasswd
> file. It no longer reports any error messages when it compiles. However,
> when I try to execute it, I get a bad command or file name message. Any
> quick ideas on this?

the htpasswd binary isn't in your path or you need to update your sell.
Try running `rehash' or give the explicit path to the htpasswd executable.

> 2. I have modified the access.conf file, created an .htaccess file in
> the directory I wish to protect, and created an htpasswd file (using the
> web interface at euronet). I can access the site and it will propmpt for
> a username and password; it will properly authorize the user and bring
> up the web page. However, it only does this the first time the page is
> accessed. The browser must be exited and restarted for the pasword
> prompt to reappear. I am sure there is a simple fix for this.

The browser isprobably caching the page and thus doesn't have to ask the
web server for the page again and go through authentication.  I bet that
the browser is caching the username and password too.  If you cleared out
the memory & disk cache you'd have to authenticate again.

Doug White                              | University of Oregon  
Internet:  dwhite@resnet.uoregon.edu    | Residence Networking Assistant
http://gladstone.uoregon.edu/~dwhite    | Computer Science Major





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971014103726.2456O-100000>