The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Already made subdomains when creating accounts

Discussion in 'General Discussion' started by jagarco, May 18, 2004.

  1. jagarco

    jagarco Member

    Joined:
    Sep 13, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Hi

    For every customer that I create an account, I also create the subdomains pointing to the Cpanels and WebMail ports...
    like this.
    admin.domain.com --> http://www.domain.com:2082
    webmail.domain.com --> http://www.domain.com:2095

    Is there a way to have WHM create the subdomains when creating the Hosting Account.??

    Some kind of template


    Thank you

    Jagarco
     
  2. perlchild

    perlchild Well-Known Member

    Joined:
    Sep 1, 2002
    Messages:
    279
    Likes Received:
    0
    Trophy Points:
    16
    You should do several things to accomplish this, first, the new (9.1 I think) dns template system allows you to define a dns template for new domains, you should make sure to create admin and webmail there
    then the script /scripts/postwwwacct needs to be created/edited to create the redirections as needed
    or you could have a global:
    RedirectMatch ^(admin.*) http://$1:2082/
    or
    RedirectMatch ^(admin.*) http://$1/cpanel/
    (preferred as this will respect the setting if you use "force ssl access to cpanel" in tweak settings)

    similarly you could do the same for webmail
     
Loading...

Share This Page