note 13345 added to features.http-auth.php

From: Date: Tue, 12 Jun 2001 19:53:53 +0000
Subject: note 13345 added to features.http-auth.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14403@lists.php.net to get a copy of this message
This is a good resource for setting up htaccess schemes: http://www.apacheweek.com/features/userauth The windows version of apache comes with htpasswd.exe in the apache\bin directory. The only thing that present problems is you have to change your .htaccess file to point to the created password file (ie C:\directory\passwords.file)....so if you transfer the file back to a *nix server it wont find your file. One (temporary) workaround is changing your local httpd.conf file to point to a different access file: AccessFileName htaccess. You just have to make sure to syncronize your access files. Im not sure if you can point your htaccess to two password files?? AuthName "restricted stuff" AuthType Basic AuthUserFile /usr/local/etc/httpd/users AuthUserFile C:\directory\password.file require valid-user http://www.php.net/manual/en/features.http-auth.php

« previous php.notes (#14403) next »