techstaff:personal_homepage
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
techstaff:personal_homepage [2014/12/17 16:38] – [Personal Homepage] kauffman | techstaff:personal_homepage [2016/03/29 09:46] – [Password protecting a directory] kauffman | ||
---|---|---|---|
Line 26: | Line 26: | ||
user@host: | user@host: | ||
</ | </ | ||
- | Verify the change | + | Verify the change. |
< | < | ||
user@host: | user@host: | ||
Line 44: | Line 44: | ||
You can access your home page by using the following URL: https:// | You can access your home page by using the following URL: https:// | ||
Please replace ' | Please replace ' | ||
+ | |||
+ | ====== Password protecting a directory ====== | ||
+ | |||
+ | Password protecting your web pages | ||
+ | Note: People viewing your page with a web browser will be required to provide a password. However, since files in your ~/html directory must be world readable to be seen by the server, anyone with a CS account can view your html files directly. | ||
+ | |||
+ | Create new password file (with a user): | ||
+ | < | ||
+ | - The password file should not be in your html directory, but it must be world readable. | ||
+ | - To add more users remove '' | ||
+ | < | ||
+ | Put a file .htaccess in each html directory to be restricted. Start with this template: | ||
+ | < | ||
+ | AuthUserFile / | ||
+ | AuthName Projec | ||
+ | AuthType Basic | ||
+ | require valid-user | ||
+ | </ | ||
+ | Now set the correct permissions on the .htaccess file. | ||
+ | < | ||
+ | chmod 644 .htaccess | ||
+ | </ |
/var/lib/dokuwiki/data/pages/techstaff/personal_homepage.txt · Last modified: 2021/09/22 16:16 by ctopper