/home/webhome-menet/paulfm/ as /homedirs/h/paulfm//home/webhome-menet/paulfm/.htaccess/ as /homedirs/h/paulfm/.htaccess//home/webhome-menet/paulfm/public-html/ as /homedirs/h/paulfm/public-html/.
MORE COMPLETE PATH INFO | ||
| URL Path | Unix Client location | Real location on Web Server |
|---|---|---|
| http://www.me.umn.edu/ | /g/www-me/ | /data/me/ |
| http://www.menet.umn.edu/ | /g/www-menet/ | /data/menet/ |
| http://www.menet.umn.edu/~{user}/ | /home/webhome-menet/{user}/public-html/ | /homedirs/h/{user}/public-html/ |
NOTE: use relative paths in web pages or use the Real Location (references should never be made to /g, /home, /h, or /stage).
.htaccess file
in the directory you wish to protect that looks similar to the
following (make sure to use a unix text editor).
AuthType Basic AuthUserFile /homdirs/h/paulfm/.htauth/htpasswd AuthGroupFile /homdirs/h/paulfm/.htauth/htgroup AuthName private <Limit GET POST> require group private order allow,deny allow from all </Limit>Example (Protect my entire person web space):
vi /home/webhome-menet/public-html/.htaccess
htpasswd file with the
htpasswd command:
htpasswd {passwd_file} {user_name}
Example:
htpasswd -c /home/webhome-menet/paulfm/.htauth/htpasswd paulfm htpasswd /home/webhome-menet/paulfm/.htauth/htpasswd user1 htpasswd /home/webhome-menet/paulfm/.htauth/htpasswd user2It should look something like the following:
paulfm:NmG46He.uBQAc user1:gNm36He9cBabc user2:6He9cBabcgNm3
htgroup file (with a unix text editor).vi /home/webhome-menet/paulfm/.htauth/htgroupIt should look something like:
private:paulfm user1 user2NOTE: The group name "private" needs to match the specified group name in the .htaccess file in the "require group private" line (case sensitive).