Setting up a custom DirectAdmin URL

Suppose you are a reseller and you want a fully white-label environment? Then you also want to have a custom DirectAdmin URL so that your customers can log in there. How to do this is explained in this knowledge base article. 

Step 1

Log in to DirectAdmin, don't know how? Then take a look at the following article: https://mijn.host/kb/hoe-log-ik-in-op-directadmin/

Step 2

Create a subdomain of your choice, note that this will become your new custom URL.

set custom url

Then click on add subdomain.

In the case of this knowledge base article, we create: custom-url.uw-domein.nl, so this differs per case.

Step 3

Go to the File Manager and find the following file: domains/public_html/custom-url

Note that we named the custom URL 'custom-url.uw.domein.nl'.

Create the .htaccess file and add the following lines:

htaccess file
RewriteEngine On
RewriteRule ^(.*)$ https://localhost:2222/$1 [P]

The domain can now be visited via the custom URL. 

custom url
For some functions, such as the SSH web terminal for customers with a Reseller premium package, it may be necessary to connect via port 2222. If you have set up a custom DirectAdmin URL, for example custom-url.uw.domein.nl, you will need to log in for these functions via custom-url.uw.domein.nl:2222 (i.e. with port :2222 behind the URL).


Still have questions? Get in touch.