.htaccess in public and adding password protection

While my site is in development I wish to add basic password protection.
At the moment my .htaccess looks like this:

AuthName “Restricted Area”
AuthType Basic
AuthUserFile /home/httpd/mydomain.co.uk/.htpasswd
AuthGroupFile /dev/null
require valid-user

.htpasswd exists and has an entry, yet I do not get a password prompt?

Does Apache Auth work for dynamic resources or only static files?

Many thanks :slight_smile:

AFM wrote:

While my site is in development I wish to add basic password protection.
At the moment my .htaccess looks like this:

AuthName “Restricted Area”
AuthType Basic
AuthUserFile /home/httpd/mydomain.co.uk/.htpasswd
AuthGroupFile /dev/null
require valid-user

.htpasswd exists and has an ent

ry, yet I do not get a password prompt?

Does Apache Auth work for dynamic resources or only static files?

Many thanks :slight_smile:

Any ideas? :slight_smile:

On Sep 12, 2006, at 5:52 AM, AFM wrote:

AFM wrote:

While my site is in development I wish to add basic password
protection.
At the moment my .htaccess looks like this:

AuthName “Restricted Area”
AuthType Basic
AuthUserFile /home/httpd/mydomain.co.uk/.htpasswd

Where is this file? Apache seems to refuse to use password files that
are in a directory that it is serving content from.

Cheers,
Bob

Many thanks :slight_smile:

Any ideas? :slight_smile:


Posted via http://www.ruby-forum.com/.


Bob H. – blogs at <http://www.recursive.ca/
hutch/>
Recursive Design Inc. – http://www.recursive.ca/
Raconteur – http://www.raconteur.info/
xampl for Ruby – http://rubyforge.org/projects/xampl/