Campuses:
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
computing:web:web_publishing:acl [2007/07/26 12:45] – external edit 127.0.0.1 | computing:web:web_publishing:acl [2013/09/19 14:43] (current) – allan | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
<box 30% right right-clear red|More Web Publishing Information> | <box 30% right right-clear red|More Web Publishing Information> | ||
- | {{indexmenu>: | + | {{indexmenu>: |
- | </ | + | </ |
- | <box 30% right right-clear red|More Account Information> | ||
- | {{indexmenu>: | ||
- | </ | ||
====== Controlling Access to Web Pages ====== | ====== Controlling Access to Web Pages ====== | ||
===== By username and password ===== | ===== By username and password ===== | ||
- | These steps really have to be performed from the Unix command line. Please also note that preparing files in a non-unix text editor (Windows or particularly | + | These steps really have to be performed from the Unix command line. Please also note that preparing files in a non-unix text editor (Windows or Mac) may not work as expected due to the different line break characters used. |
1. Create a file named .htaccess in the directory you wish to protect, that looks similar to the following. | 1. Create a file named .htaccess in the directory you wish to protect, that looks similar to the following. | ||
| | ||
- | | + | |
- | | + | |
| | ||
< | < | ||
Line 26: | Line 22: | ||
< | < | ||
- | NOTE: Make sure your htpasswd and htgroup files are outside of the public-html directory, so they can't be downloaded using the web server. In this example, the home directory is /home/user1/allan, and we put the password and group files here as they will be inaccessible via the web. | + | NOTE: Make sure your htpasswd and htgroup files are outside of the public-html directory, so they can't be downloaded using the web server. In this example, the home directory is /home/lemming, and we put the password and group files here as they will be inaccessible via the web. The word " |
</ | </ | ||
Line 35: | Line 31: | ||
eg, | eg, | ||
- | htpasswd -c /home/user1/allan/htpasswd username1 | + | htpasswd -c /home/lemming/htpasswd username1 |
The above command both creates the password file and adds the first user name to it. You should be prompted for a password for the user. You can add further users to the password file using the same command but without the -c switch. | The above command both creates the password file and adds the first user name to it. You should be prompted for a password for the user. You can add further users to the password file using the same command but without the -c switch. | ||
+ | |||
+ | < | ||
+ | Don't use the same password as you use for your Physics account or UMN internet account - the personal or group web pages do not use a secure connection, so the password isn't as safe against snooping as most other logins. | ||
+ | </ | ||
3. Create your htgroup file (using a text editor). It should look something like: | 3. Create your htgroup file (using a text editor). It should look something like: | ||
Line 45: | Line 45: | ||
< | < | ||
- | NOTE: The group name " | + | NOTE: The group name " |
</ | </ | ||