DirectAdmin Site-Helper

Helping you get the most out of DirectAdmin and your web!

# Miscellaneous Features

This document provides information about 404 error pages, directory password protection, server information, cron jobs, mime types, apache handlers, site redirection, domain pointers, and hosting additional domains.

# 404 Error Pages

To access error pages, sign into the control panel and then click on the "Advanced Features" icon, followed by the "Custom Error Pages" link.

access custom error pages

access advanced features menu

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

There is default text in custom error pages, which you can view by pressing "View" button or edit by pressing "Edit."

custom error pages

# Changing the Error Pages

There are two ways to change the error pages:

# Method 1:

From the Error Page menu, click the "Edit" button of the error page you want to edit (see picture above). 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. You can find more information about uploading and editing files here.

# Directory Password Protection

To access "Password Protected Directories" menu, sign into the control panel and then click on the "Advanced Features" icon, followed by the "Password Protected Directories" link.

access password protected directories

access advanced features menu

From there, you will see all password protected directories. You can press "Find a directory to Password Protect" link below directories table, to access protected directories in File Manager, or you can click on the directory name to edit desired password protected directory.

access password protected directories list

If you want to protect new directories, click on the "Find a directory to password Protect" link (see image above). Then click on the "+" button in right of the desired folder and press "Protect" link.

add protected directory

Fill in the Directory Promt(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 see what happens.

create protected directory

# Modifying Password Protected Directories

Click on the directory path to edit the directory. From here you may update directory name, add new or remove old directory users.

You can also remove protection from directory by simply clicking "Remove Protection" button at the top right corner of the window.

edit protected directory

# Server Information

To access "Server Information" menu, sign into the control panel and then click on the "System Info & Files" icon, followed by the "Server Information" link.

access server information

access server information

The server information feature allows you to determine the memory usage of the server, uptime, CPU's information and the status of all services.

# Cron Jobs

To access "Cronjobs" menu, sign into the control panel and then click on the "Advanced Features" icon, followed by the "Cronjobs" link.

access cronjobs

access cronjobs

Cron jobs are system commands that can be scheduled. For example, if you wanted a "hi" value added to text file every Monday morning, you could do this through the cron jobs menu. Values that can be set are minute, hour, day, month, and day of week (Monday-Sunday; the numbers 0 or 7 represent Sunday). Any value can be ignored by placing an asterisk (*) in the text field.

In the above example, we are setting command echo to put word "hi" in hi_per_hour.txt file every day at midnight.

You can also specify exact times using commas to separate them (e.g. 1,2,3 is minutes 1, 2 and 3).

You can specify spans using a dash (e.g. 5-7 is minutes 5 to 7).

You can specify intervals using a star and a forward slash. (e.g.: */2 is every 2nd minute.)

You can combine them to create a more precise schedule. (e.g.: 1,5,11-15,30-59/2 (minutes 1, 5, 11 to 15 and every 2nd minute between 30 and 59).

Remember to click "Create" button below when you are finished entering your data.

If you're trying to run a php script, remember to run the php binary, and pass it the php script. For example:

create cronjobs

/usr/local/bin/php /home/user/domains/

# Mime Types

To access "Mime Types" menu, sign into the control panel and then click on the "Advanced Features" icon, followed by the "Mime Types" link.

access mime types

access mime types

Mime types allow you to set how browsers open web files. 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.

To add mime type click on the "Add Mimetype" button.

At the bottom of the mime types menu is a link to the list of all mime types currently installed on the system.

add mime type

# Apache Handlers

To access "Apache Handlers" menu, sign into the control panel and then click on the "Advanced Features" icon, followed by the "Apache Handlers" link.

access apache handlers

access 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 add a handler, simply press "Create Handler" button then type in the handler name and extension (without a period) and click on “Create.”

In the above example, Apache would handle all .ima files as IMAP types, even though the default extension for image maps is .map.

At the bottom of the apache handlers menu is a link to the list of all apache handlers currently installed on the system.

add apache handlers

# Site Redirection

To access "Site Redirection" menu, sign into the control panel and then click on the "Account Manager" icon, followed by the "Site Redirection" link.

access site redirection

access site redirection

Site redirection allows you to forward visitors to somewhere else on your site, or to another web site altogether.

In the above example, visitors to would be sent to

Enter a slash (/) by itself in the "Local URL Path" field to forward all visitors from your domain ( to the specified Destination URL.

add site redirection

# Domain Pointers

Note: Domain pointers are disabled by default to users in DirectAdmin. If you don't see "Domain Pointers" link in "Account Manager" contact your administrator.

To access "Domain Pointers" menu, sign into the control panel and then click on the "Account Manager" icon, followed by the "Domain Pointers" link.

access domain pointers

access domain pointers

Domain pointers allow you to forward other domains to your main web site. Make sure 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 In the example from right we are creating a pointer that makes all visitors to end up at

Select "Create as an Alias" box if you want users to see links instead of in the browser.

Be sure to click "Create" when you are finished entering the source domain.

Note: It may take up to 72 hours for the pointer to become active.

add domain pointers

# Hosting Additional Domains

To see all your current domains sign into the control panel and then click on the "Account Manager" icon, followed by the "Domain Setup" link.

access domains list

access domains list

You can see all your listed domains from here. Also, you can add new domain or rename existing one. To host an additional domain, click the "Add New" button at the top of the page.

list domains

First, enter the domain name. Use all lower-case characters. You do not need to enter "http://" or "www."

Second, select the bandwidth and disk usage 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."

You can also choose what access you website will have. Click only if you know what you are doing, otherwise just leave it default.

Make sure to edit the record of the new domain so that it uses the same name servers as your main domain (this is done through the domain registrar). It may take up to 72 hours for the new domain to resolve.

adding new domain

# Signing in to the Control Panel

Sign into the control panel as you always have. You will see a choice of the domains hosted on your account. Click on the domain you want to work with.

listing domains

# 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.

# Renaming a Domain

You can change the name of a domain from to Simply click "Rename Domain" button.

Then select old domain from the list.

Enter new desired domain name (without "www" or "https://") and click "Rename".

rename domains

# Installing and Enabling Redis

This feature is part of "Pro Pack".

In order to install Redis you first need to connect to a Directadmin server as root. Go to /usr/local/directadmin/custombuild/options.conf and change from redis=no to redis=yes. Then use the following commands:

cd /usr/local/directadmin/custombuild
./build redis

You can setup redis to work during for packages/users during their creation.

In order to enable Redis for a specific package go to Account manager -> Manage User Packages or Manage Reseller Packages (depending on what type of package you wish to edit)

Manage user packages

Afterwards click on the package you wish to enable it for.

Manage user packages

Check the "Redis" checkbox and save your configuration.

Manage user packages

You can do the same for individual users by going to Account manager -> Show all users and clicking on a specific user

# Nginx Templates

This feature is part of "Pro Pack"

In order to use this feature you must first install Nginx. You can do so by following the steps provided in this linkopen in new window.

To enable an Nginx template go to "Advanced Features" -> "Nginx URL Rewrites"

Advanced Features

Nginx templates

Choose the option "Add Template" Nginx templates and specify the "location" and "template"

Nginx templates

Here "location" is the directory from which your web files will be served.

# Need More Help?

Please contact your hosting company for more assistance, or visit the DirectAdmin support forum at http://forum.directadmin.comopen in new window.