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.
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:
RewriteEngine On
RewriteRule ^(.*)$ https://localhost:2222/$1 [P]
The domain can now be visited via the custom URL.
Still have questions? Get in touch.