Arbor Hosting - Discount Webhosting, FREE domain names
 Technical Support
Terms  |  No Spam  |  Privacy Policy  |  Contact Us 
Site Directory
Home/ Info
Hosting Packages
Technical Support
 
CGI
Domain Names & DNS
Email
FrontPage 2000
FTP
Mailing Lists
MySQL Database
PHP
Shell Access
User Accounts
Web Page 
Order
Contact Us
Network and Server Status

$13.95 Domain Registration
Search Engine Submission and Optimization Software

Web Page


Q1.  Can I customize my own error pages?
Q2.  Can I password protect a directory?
Q3.  Do you support server-side includes (SSI) and how do I use it?


Q1.  Can I customize my own error pages?

  Yes. Here's how:

    You need to specify the location and filenames of the error documents. The error document configuration is stored /var/www/html/.htaccess. To customize your site's error messages, add the following lines to the .htaccess file (create if it does not exist):

    ErrorDocument 401 /401_auth_required.html
    ErrorDocument 403 /403_forbidden.html
    ErrorDocument 404 /404_file_not_found.html
    ErrorDocument 500 /500_server_error.html

    You may of course change the file names and paths as desired. For example,

    ErrorDocument 403 /error_doc_directory/forbidden.php

    Put the desired contents in each of the above files you create.

[BACK]


Q2.  Can I password protect a directory?

  Yes. Password protection is done via Apache's .htaccess mechanism. The procedure is different depending on whether or not you use FrontPage.

FrontPage Users:

  1. Create a folder in which to store your private files. Put your private files inside this folder.
     
  2. Convert this folder into a subweb. You may do this by right clicking once on the folder and selecting "Covert to Web" from the popup menu.
     
  3. If you are working directly on your website (as opposed to working on a local copy on your hard disk), proceed to step 4.

    If you are working on a local copy of your website on your hard disk, publish your web to the server now (File->Publish Web).

    1. Close your local web site (File->Close Web).
       
    2. Open your web directly from the server (File->Open Web. In the folder name box, enter "http://www.yourdomain.com", where yourdomain.com is the name of your website).
       
  4. Double click on the private folder subweb you created in step 2. Go to Tools->Security->Permissions. A permissions window will appear.
     
  5. Inside the permissions window, chose "Use unique permissions for this web" and press the Apply button (if you pressed the OK button by accident, repeat step 4).
     
  6. Click on the Users tab. At the bottom of the window, select "Only registered users have browse access" and press the Apply button (if you pressed the OK button by accident, repeat step 4).
     
  7. Click on the Add button to add a new user. Select a username and password that will be required to access your private information. Press the OK button to save your changes.
     
  8. Click on the OK button on the permissions window to close it.
     
  9. Close your web (File->Close Web). Your private folder should now be password protected.
     

Everyone Else:

  1. Create a directory in which to store your private files.
     
  2. Inside that directory, create a file called .htaccess with the following contents:

    • Standard25/50 Plan Customers:
      AuthName YourSiteName
      AuthUserFile /home/virtual/zzz/var/www/html/private_directory/.htpasswd
      AuthType Basic
      Require valid-user

    • Professional and Business Plan Customers:
      AuthName YourSiteName
      AuthUserFile /var/www/html/private_directory/.htpasswd
      AuthType Basic
      Require valid-user

    You must replace the red portions with the following:

    • YourSiteName: An abbreviation of your website. IMPORTANT: YourSiteName must be one word; spaces are not allowed.
    • zzz: Your site administrator username.
    • private_directory: The name of your password protected directory

  3. Next, create a .htpasswd file in the same private directory.

    • Standard25/50 Plan Customers:
      Please email support@arborhosting.com with a list of usernames and passwords for your private directory. We will reply to your email with the appropriate contents to insert into your .htpasswd file.

    • Professional and Business Plan Customers:
      You can create your own .htpasswd by telneting or SSH'ing to your website and running the htpasswd program. Here's an example of a shell session to create your password file:

      $ cd /var/www/html/private_directory
      $ htpasswd -c .htpasswd web_user
      New password: web_password
      Re-type new password: web_password
      Adding password for user web_user

      Replace the red portions with the correct values appropriate to your site. To add additional users, simply repeat the htpasswd command without the -c option. (The -c option erases your password file and starts from scratch.)

[BACK]


Q3.  Do you support server-side includes (SSI) and how do I use it?

  Yes, we support SSI on any hosting package that includes CGI support. One of the most common uses of server-side includes is to include the results of a CGI program, such as a hit counter. To include the output of a CGI script or the contents of another HTML file, add code similar to the following to your HTML file:

<!--#include virtual="/cgi-bin/counter.pl" -->

In addition, your HTML file must end in .shtml instead of .html, or the permissions on the file must be marked as executable.

[BACK]

 Technical Support
Terms  |  No Spam  |  Privacy Policy  |  Contact Us 
Copyright ©2001 Arbor Domains & Hosting