Wednesday, July 14, 2004

apache password

Add two files: .htaccess and .htpasswd, .htaccess is in the directory that you want to set password, .htpasswd can be in the same directory or indicated directory.

.htacess (engr)
AuthUserFile /usr01/students/wsu0/public_html/.../.htpasswd
AuthName "Enter Password"
AuthType Basic

require valid-user


.htaccess (sweb)
AuthUserFile /u4/wsu3/www/..../security/.htpasswd
AuthName "Enter Password"
AuthType Basic

require valid-user


.htpasswd
xxxx:tTHViMyGOdm8A, it can be generated from this website.

No comments:

Post a Comment