Creating Customized Error Documents
The three-digit number in the second column represents the server error-code for the error you are creating a document for. The two most common error codes are 403 - Access Denied, and 404 - Not Found. A complete list of error codes can be found here.
Password Protecting Web Pages
ErrorDocument 403 http://www.svn.net/your_username/403.html
ErrorDocument 404 http://www.svn.net/your_username/404.html
or
ErrorDocument 403 http://www.yourdomain.com/error.html
AuthUserFile /home/htdocs/your_username/private/.htpasswd
AuthGroupFile /dev/null
AuthName "Enter Name Here"
AuthType Basic
<Limit GET>
require valid-user
</Limit>
htpasswd -c /home/htdocs/your_username/private/.htpasswd webuser
This command will prompt you to enter the password twice. If you wish to later change the password, or add another password, run the htpasswd command again without the -c flag. You are now finished with your shell account, so type exit to close it.
COPYRIGHT |
CONTACT INFO |
DISCLAIMER