How to set passwd for your web pages
Dear IE Students,
If you want to set passwd for your HTML documents, please follow
these steps:
- mkdir a directory under your ~/public_html
- In this directory create a file ".htaccess" file with the
following lines
AuthUserFile < path>/passwd_file
AuthName "Restricted stuff"
AuthType Basic
Require valid-user
- create the "passwd_file" with the following command
htpasswd -c passwd_file user_name
- put the HTML documents that you want to protect under this
directory
- now whenever people access these HTML documents under this
directory need to supply the user_name and its passwd
As this web server is shared by all students, any highly confidential document is not suitable to be housed in this web server.