Forum Moderators: phranque
I am trying to require user/pass on an Aliased directory.
What I've done is put the .htaccess file in the Aliased directory (which is on my H:\ drive).
The .htaccess file points to the .htpasswd file which is in my root directory (on c:\apache).
I am running .htaccess files with success on subfolders of the root but I cannot get it to work for Aliased directories.
Any ideas?
Thanks!
Mark
PS: I've tried putting the .htpasswd file in the Aliased dir along with the .htaccess file which then points to it but haven't had any luck there either.
Running WinXP Pro
Ok, yes it works.
I can alias my D: drive
in each folder to be shared I have my .htaccess file
i.e.
AuthType Basic
AuthUserFile bin/htpasswd
AuthName "Restricted Area"
AuthType Basic
<Limit GET POST >
require valid-user
</Limit>
the line AuthUserFile bin/passes/htpasswd refers back to my apache2 folder where the names passwords are stored.
However, I have access to those external disk drives by alias within the http.conf file configurin APache.