Re: .htaccess question protect my php test environment

From: Date: Fri, 24 Oct 2003 17:41:27 +0000
Subject: Re: .htaccess question protect my php test environment
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-167468@lists.php.net to get a copy of this message
Frank Tudor wrote:
I have to apologies about this posting in advance so please don't flame me too bad for being off topic. Question: I want to create an .htaccess file to protect my files I did the passwrd -c /directory/file frank
The above is wrong, the below is right.... htpasswd -c /path/to/file username
the set a password and then confirmed the password I created a .htaccess file with vi and put this in it. AuthName "restricted stuff" AuthType Basic AuthUserFile /var/password/frank require valid-user then in the redhat http server utitily under server settings I went tot he virtual directory section and created a new virtual dir called virtual 0 and check marked the box at the bottom for .htaccess protection. I restart the server and then go to another computer and put in the URL and no password box comes up. :(
Make sure you are allowing enough override for .htaccess to work. Can't help with the GUI...never used one. -- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#167468) next »