This document contains information about error pages (404, etc.), password protection of the directory, server information, cron jobs, mime types, apache handlers, site redirects, domain pointers, and placement of additional domains.
404 error pages
Error pages allow you to control what visitors see when they encounter these types of errors:
401 Unauthorized (visitor has no rights to view file/directory)
403 Forbidden (file/directory cannot be accessed)
404 File or directory not found
500 There was an error on the server
Changing the error pages
There are two ways to change the error pages:
From the “Error Pages” menu, click the “Edit” button on the error page you want to edit (see Figure above). A text box will appear and you can paste your HTML code into the text box.
Create the files yourself in any HTML editor and upload them to your public_html directory. The files must have a .shtml extension. You can find more information about uploading and editing files here.
Password protection for the directory
From there you will see all the password-protected directories. You can click the “Find folders for password protection” link above the directory table to access protected directories in the File Manager, or you can click the directory name to edit the desired password-protected directory.
If you want to protect new directories, click the “Find folders for password protection” link (see the image above). Then click the “+” button to the right of the desired folder and click the “Protect” link.
Add a protected directory
Fill in the Protected folder message (description of the password-protected directory), the user name for the directory and the password for the directory. Click Save.
Now type the full directory address into your browser and see what happens.
Changing password-protected directories
Click on the directory path to edit the directory. From here you can update the directory name, add new or delete old directory users.
The server information function allows you to determine the server’s memory usage, uptime, CPU information and the status of all services.
Cron jobs are system commands that can be scheduled. For example, if you want the value “hi” to be added to a text file every Monday morning, you can do this through the cron job menu. The values of minutes, hours, days, months and days of the week (Monday-Sunday; digits 0 or 7 represent Sunday) can be set. Any value can be ignored by putting an asterisk (*) in the text box.
You can also specify exact times, using commas to separate them (e.g., 1,2,3 – minutes 1, 2 and 3).
You can specify intervals using the dash (for example, 5 to 7 minutes is 5 to 7).
You can specify intervals using an asterisk and a slash. (e.g.: */2 every 2 minutes.)
You can combine them to create a more accurate schedule. (e.g: 1,5,11-15,30-59/2 (minutes 1, 5, 11-15 and every 2 minutes between 30 and 59).
Don’t forget to click the “Create” button below when you are finished entering your information.
If you are trying to run a php script, don’t forget to run the php binary and pass the php script to it. For example:
MIME types allow you to set how browsers open web files. To add a mime-type, enter a mime-type name followed by an extension without a dot. MIME types (and Apache handlers – described below) should only be used by experienced users.
To add a MIME type, click the “Add MIME type” button.
At the bottom of the MIME types menu is a link to a list of all MIME types currently installed on the system.
Handlers tell Apache (web server software) what to do with certain file types. For example, the .cgi and .pl extensions are handled by Perl. You can make Apache handle .scr files with Perl, using the appropriate handlers.
In the above example, Apache will treat all .ima files as IMAP types, even if the default extension for image maps is .map.
At the bottom of the apache handlers menu is a link to a list of all the handlers currently installed on the system.
Redirecting the site
Website redirects allow you to redirect visitors somewhere to your site or to another site altogether.
Enter a slash (/) in the Local URL Path field to redirect all visitors to your domain (http://www.example.com) to the specified destination URL.
Note. Domain pointers are disabled by default for users in DirectAdmin. If you don’t see the “Domain Pointers” link in “Accounts”, please contact your administrator.
Domain pointers allow you to redirect other domains to your main website. Be sure to change these domain entries to the same name servers as your main website (this is done through your domain registrar).
Check “Create as alias” if you want users to see links to example.com instead of exam-ple.com in the browser.
Don’t forget to click “New” when you have finished entering the source domain.
Note. The pointer can be activated for up to 72 hours due to a DNS update.
Hosting additional domains
Here you can see all the listed domains . You can also add a new domain or rename an existing domain. To place an additional domain, click the “Add New Domain” button at the top of the page.
First, enter the domain name. Use lower case letters. You don’t have to type “http://” or “www.
Second, select the bandwidth and disk usage available for that domain. If you only need 1 gigabyte of transmission per month, enter 1,000 in the “Traffic” field. If you want to share traffic with the main domain without restrictions, check “As for the main account”. Finally, click Create.
Be sure to change the NS-records of the new domain, so that it uses the same name servers as your primary domain (this is done through the domain registrar). New domain resolution can take up to 72 hours to activate due to DNS updates.
Logging into the control panel
Uploading files to each domain
Renaming a domain
Then select the old domain from the list.
Enter the new desired domain name (without “www” or “https://”) and click “Rename”.