Assigning passwords to protect directories on the servers used by tempusfugit.ca
.htaccess and .htpasswrd files in the protected directories
The directories as protected by making the appropriate entry in the .conf file for the VirtualSite in question.
The contents of .htaccess:
.htaccess and .htpasswrd files in the protected directories
The directories as protected by making the appropriate entry in the .conf file for the VirtualSite in question.
Directory "/path_to_directory/restricted_directory"
AllowOverride All
/DirectoryNote that the tag delimiters have been removed from the Directory Tag
The contents of .htaccess:
AuthName "A Dark and Secret Place" AuthType basic AuthUserFile /path_to_directory/restricted_directory/.htpasswd require valid-userThe text specified in AuthName is what is displayed in the login dialog below:
No comments:
Post a Comment