Introduction
This article will walk you through adding a domain forwarder in WHM.
Procedure
In the WHM interface, click on "Setup/Edit Domain Forwarding" under the "DNS Functions" section.
- Click Click to Create.
- Click Setup Forwards.
- In the Domain column, enter the domain whose visitors you wish to redirect.
- In the Redirection URL column, enter the domain or subdomain to which you wish to redirect visitors.
- Click Save Map. A confirmation message will appear.
Please note that this feature requires a second, unused IP address to dedicate to this feature. When set up, a new VirtualHost entry will be added to your Apache configuration with this unused IP that resembles the following:
<VirtualHost 1.1.1.1>
ServerName 1.1.1.1
ServerAdmin root\@localhost
DocumentRoot /dev/null
ScriptAliasMatch .* /usr/local/cpanel/cgi-sys/domainredirect.cgi
</VirtualHost>
which will redirect all requests using this secondary IP (1.1.1.1 in the example) to the domain(s) that are setup in the WHM interface.
We have some further information on this in our documentation here.
Comments
0 comments
Article is closed for comments.