MV Communications
Customer Tools Technical Support Other Sites home.mv.net

.HTACCESS AUTHENTICATION
MV Communications' web server supports password protecting an area of your site. This code below is an example of .htaccess. You can cut and paste this example into a text program and save it as a file called .htaccess. Upload this file as ascii text to the directory you wish to password protect.

For users with webspace in the exclusive area:
--------- example begin ---------

AuthUserFile /ws/www.yourdomain.com/htdocs/.htpasswd
AuthName "Protector ID"
AuthType Basic
require valid-user
--------- example end ---------

For users with webspace in the /ipusers area:
--------- example begin ---------

AuthUserFile /ws/httpd/htdocs/ipusers/nodename/.htpasswd
AuthName "Protector ID"
AuthType Basic
require valid-user
--------- example end ---------

You then want to create the password file. This file name needs to be .htpasswd. This password needs to be encrypted so MV does provide an encryption tool found here. Create a password and cut and paste the encrypted output from the tool provided above. Upload this file to your webspace in the directory as ascii text.

Make sure the path reflects where you store the .passwd file. If you are hosted in the exclusive area the root directory of your site is /ws/dd/www.yourdomain.com/htdocs/ Make a subdirectory called /private the path would be /ws/dd/www.yourdomain.com/htdocs/private/.htpasswd

Also, refer to Apache Directives for 'indepth' support of .htaccess.