User Tools

Site Tools


techstaff:personal_homepage

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
techstaff:personal_homepage [2016/03/29 09:40] kauffmantechstaff:personal_homepage [2016/03/29 09:46] – [Password protecting a directory] kauffman
Line 52: Line 52:
 Create new password file (with a user): Create new password file (with a user):
 <code>htpasswd -c .http_passwd new_user</code> <code>htpasswd -c .http_passwd new_user</code>
-  - (note: the password file should not be in your html directory, but it must be world readable) +  - The password file should not be in your html directory, but it must be world readable. 
-  - To add more users (no -c!)+  - To add more users remove ''%%-c%%'' from the above command.
 <code>htpasswd .http_passwd user2</code> <code>htpasswd .http_passwd user2</code>
 Put a file .htaccess in each html directory to be restricted. Start with this template: Put a file .htaccess in each html directory to be restricted. Start with this template:
Line 61: Line 61:
 AuthType Basic AuthType Basic
 require valid-user require valid-user
 +</code>
 +Now set the correct permissions on the .htaccess file.
 +<code>
 chmod 644 .htaccess chmod 644 .htaccess
 </code> </code>
/var/lib/dokuwiki/data/pages/techstaff/personal_homepage.txt · Last modified: 2021/09/22 16:16 by ctopper

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki