This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
faq:web04 [2011/04/30 19:19] – created georg | faq:web04 [2015/11/13 16:46] (current) – alex | ||
---|---|---|---|
Line 9: | Line 9: | ||
1. Create a file called ' | 1. Create a file called ' | ||
want to protect (NOTE, its not a directory in your | want to protect (NOTE, its not a directory in your | ||
- | HOME directory, but on the /www file system) | + | HOME directory, but on the /www file system). Double check with 'pwd -P' |
AuthUserFILE / | AuthUserFILE / | ||
Line 23: | Line 23: | ||
2. run the ' | 2. run the ' | ||
- | htpasswd -c .htpasswd myuser1 | + | |
You will be prompted to enter a password for the | You will be prompted to enter a password for the | ||
Line 29: | Line 29: | ||
can then add additional users with: | can then add additional users with: | ||
- | htpasswd .htpasswd myuser2 | + | |
When you run ' | When you run ' |