|
||||||||||
|
|
Parkdomain on Addon domain in cPanel And create mail accounts for that ParkdomainMarch 1, 2009 on 12:57 pm | In Cpanel | No CommentsHello guys, You might have come across the requirement of parking a domain on an addon domain. Please note this can be done only via backend and you need root access to the server. Suppose. main domain : maindomain.com Case One. Case Two. Steps for Case One. For parking a domain on to an Addon domain. Assuming the case of parkdomain.com” to be parked on addon domain “addondomain.com”. Take a backup of Apache conf fine. cp -pr /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.confback Open the file /usr/local/apache/conf/httpd.conf in vi editor or pico fine the Virtual host entry for the “ServerAlias addondomain.com” ServerAlias addondomain.com www.addondomain.com Edit this line as ServerAlias addondomain.com www.addondomain.com parkdomain.com www.parkdomain.com Restart Apache Now add the zone entries via WHM. DNS Functions > Add a new DNS zone Once it has propagated you park domain will start working. Please note that your parkdomain.com will be shown under the Addondomains section in Cpanel. Steps for Case Two You need the domain “parkdomain.com” to be parked on addon domain “addondomain.com”. Also, you need to create mail account for the domain “parkdomain.com” via cPanel interface. Perform the Case one. Please take the backup of all the files you edit. find the username of the account grep addondomain.com /etc/userdomains open using your text editor. /var/cpanel/users/username DNS If you have two entries already Add Next get in to the directory /var/cpanel/userdata/username Find the directive “serveralias: addondomain.com www.addondomain.com www.addondomain.maindomain.com” serveralias: addondomain.com www.addondomain.com www.addondomain.maindomain.com parkdomain.com www.parkdomain.com Next Add a new entry Open the file Add a new entry You are about to finish. You should be able to view the parkdomain.com in your cPanel > Mails > Add/remove mail accounts. No Comments yet »RSS feed for comments on this post. TrackBack URI Leave a comment |
![]() Powered and designed by Presoon.com. |