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.

After adddon domains action?

Discussion in 'General Discussion' started by lukas1234, Apr 7, 2009.

  1. lukas1234

    lukas1234 Member

    Joined:
    Jan 15, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    I know how to add action after account creation,but is it possible to do same with addon domain?I need it for recreating nginx proxy config file.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The creation of an addon domain calls the API2 function AddonDomain::addaddondomain(). This means you can use cPanel function hooks to have a custom script called every time an addon domain is created. You can read more about how to do this by reading this file on your server:

    /usr/local/cpanel/hooks/README

    You can find the full content of that API2 function call in:

    /usr/local/cpanel/base/frontend/x3/addon/doadddomain.html
     
Loading...

Share This Page