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

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. Log into your admin control panel at www.(YOUR-SITE).com/admin
     
  3. Click on "Configuration" (under "Web Server" on the left menu)
     
  4. Click on "Protected Directories" toward the top middle.
     
  5. Click on "manage groups" to create a group (pick an group name of your choice).
     
  6. Click on "manage user" to create one or more users and assign these users to the group you created.
     
  7. Click on the red lock for the directory you want to password protect, and select the group you created above for which you want to allow access.
     

[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