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.

Personalize subdomain creation

Discussion in 'General Discussion' started by argintxe2, Apr 12, 2006.

  1. argintxe2

    argintxe2 Member

    Joined:
    Jun 17, 2005
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I've created a /scripts/postwwwacct in order to modify some configs in user dirs and modify domains VirtualHost. I would like to do the same thing (modify default VirtualHost) when creating a subdomain from user's cPanel interface.

    Is there anyway I could modify the VirtualHost is created when a subdomain is added? Something similar to /scripts/postwwwacct would be really nice.

    I've already searched Google, WebHostingTalk, Ev1server.net forum and these forums, but I've been unable to find any relevant info.

    Thanks
     
  2. argintxe2

    argintxe2 Member

    Joined:
    Jun 17, 2005
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    After days looking for a solution I just found the solution a few minutes after strating this thread.

    cPanel implemented VirtualHost templates and they work pretty well! Just look at:

    /usr/local/cpanel/etc/httptemplates/apache1

    They are used when creatting account, adding subdomains, addond domains, etc.
     
  3. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page