|
Miscellaneous Features
This document provides information about Custom error pages, directory password protection, server information, mime types, apache handlers, site redirection, domain pointers, and hosting additional domains.
Custom Error Pages
Error pages allow you to control what visitors see when they encounter these types of errors:
401 Unauthorized (the visitor does not have permission to view the file/directory)
403 Forbidden (access to the file/directory is not possible)
404 The file or directory is not found
500 An error occurred on the server
From the "Advanced Features" section of the main control panel, click the "Custom Error Pages" link. You will see a screen that looks like this:

By default, there are no error pages. That is, 401.shtml, 403.shtml etc., do not exist. The "View" link next to each file name allows you to see what a visitor sees when they encounter that type of error.
Changing the Error Pages
There are two ways to change the error pages.
Method 1:
From the Error Page menu, click the file name of the error page you want to edit. A text box will appear, and you can paste your HTML code into that text box.
Method 2:
Create the files yourself in any HTML editor and upload them to your public_html directory. The files must have the .shtml extension.
Directory Password Protection
Directory Password Protection is intended to restrict web access to specific directories within your website.
From the "Your Account" section of the main control panel, click the "Password Protected Directories" link.
If you have no password protected directories, you will see a link called "Find a Directory to Password Protect". (If you have some existing password protected directories, they will be listed below the link).
Clicking the link will display your Web root folder within your file manager.

To password protect a directory, click the "Protect" link next to the folder you want to protect. In this example, we will click on "Private."

Next, check the box at the top of the table tp enable Password Protection. Fill in the Directory Prompt (a description of the password protected directory), the username for the directory, and the password for the directory. Click "Save."
Now, type the full address of the directory into your browser and you should be prompted for a username and password.
Modifying Password Protected Directories
From the main control panel, click the "Password Protected Directories" link. You will see a list of directories being currently protected. For example:

Click on the directory path to edit the directory.

From here you may un-protect the directory (by unchecking the box at the top of the table), add more usernames (by entering a new one username and password), changing the password (by entering an existing username and a new password), or delete existing usernames (by selecting them in the lower table and clicking "Delete".
Server Information
To access the server information, click on the link from the main control panel page. You will see a screen that looks like this:

The server information feature allows you to determine the memory usage of the server, uptime, and the status of all services.
Mime Types
Mime types allow you to set how browsers open web files.
To access the "Mime Types" configuration page, click on the link in the lower part of the main control panel page.
To add a mime type, enter the mime type name and then the extension, without a period. Mime types (and Apache handlers – described next) should only be used by advanced users.

In the above example, web browsers would open *.fil files as plain text documents.
At the bottom of the mime types menu is a link to the list of all mime types currently installed on the system.
Apache Handlers
Handlers tell Apache (the web server software) what to do with certain types of files. For example, .cgi and .pl extensions are processed with Perl. You could make Apache process .scr files with Perl by using the appropriate handlers.
To access Apache handlers click on the "Apache Handlers" link on the main control panel menu.
To add a handler, simply type in the handler name and extension (without a period) and click on “Add.”

In the above example, Apache would handle all .ima files as IMAP types, even though the default extension for image maps is .map.
A list of all User Installed custom Apache handlers will be shown on the same page.
Site Redirection
Site redirection can be used when a subdirectory of the domain needs to automatically take a user to another location within your website, or to another web site altogether. To setup, click on the "Site Redirection" link from the main control panel menu.

In the above example, visitors to http://www.domain.com/somedire would be sent to http://www.dom2.com.
Enter a slash (/) by itself in the "Local URL Path" field to forward all visitors to your domain to the specified Destination URL.
Domain Pointers
Domain pointers allow you to forward other domains to your main web site. There are two types of domain pointers available.
1. Domain redirection, where a user's browser is redirected to the website of the destination domain. (This type creates a separate virtual host configuration)
2. Domain aliasing, where a website can be accessed under multiple domains without the user being aware of it. (This type creates a "ServerAlias" entry in the destination domain's virtual host).
In both cases you should make sure that the DNS records for the domain being redirected are controlled by Seanet's DNS servers. You may need to change the records of these domains to the same name servers as your main web site (this is done through the domain registrar).

Let's say we also own the domain "domain.net". In the above example, we are creating a pointer that makes all visitors to "domain.net" see the same website as if they had gone to "domain.com". By unchecking the "Create as an Alias" option, a "redirection" would be created whereby the address in the user's browser would be reqritten to show "domain.com". Be sure to click "Add" when you are finished entering the source domain.
Note: It may take up to 72 hours for the pointer to become active, depending on DNS propagation times.
Hosting Additional Domains
Most hosting plans allow more than one domain to be handled from within the same account. To add a domain, click on "Domain Setup" on the main control panel page.
Note: This feature may not be enabled for your hosting plan. Check with Seanet's Customer Service for more information.
To host an additional domain, click the "Add Another Domain" link at the top of the page. You will then see the panel below:

Enter the domain name. Use all lower-case characters. You should not enter "http://" or "www."
Select the throughput available to this domain. If you only want 1 gig of transfer per month, enter 1000 into the "Bandwidth" field. If you want to share bandwidth with your main domain, without limit, then check the "Same as Main Account" box. Finally, click "Create."
If you want to limit the amount of disk space available to a particular domain, you may set it here. Otherwise, leave the "Same as Main Account" checked.
You can also limit whether CGI, PHP and SSL are enabled for this domain, if desired.
If it isn't already, make sure to edit the record of the new domain so that it uses the Seanet name servers (this is done through the domain registrar). It may take up to 72 hours for the new domain to resolve.
Signing in to the Control Panel with multiple domains.
Sign into the control panel as you always have. You will now see a choice of the domains hosted on your account:

Click on the domain you want to work with or click on "Domain Administration" to add / remove / modify another domain.
Uploading Files to Each Domain
Uploading files to each domain is very simple. When you use FTP or the control panel's built in file manager, go to the domains directory and then choose the domain you want to upload to.
Need more help?
If you need further assistance with any Control Panel feature, please contact our Customer Support department.
Helpful information is also available in the DirectAdmin support forums. |