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.

dynamic update of dns entries

Discussion in 'cPanel Developers' started by satish.perala, May 6, 2010.

  1. satish.perala

    satish.perala Registered

    Joined:
    May 6, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I am trying to host multiple sites on a single webapp in tomcat server.
    For example
    www.abc.com, XYZ Consulting and several other such sites point to my web server (apache) and to application server (tomcat) to fetch the content.
    My web app is hosted at www.mysite.com.
    www.abc.com should forward to www.mysite.com?id=abc
    XYZ Consulting should forward to www.mysite.com?id=xyz

    Can you tell me how to configure dns entries, apache and tomcat configuration??
    These multiple site will be added dynamically! so is there any way to update the dns entries dynamically without restarting the dns server ... and similarly for apache and tomcat also??

    Thanks very much in advance
     
  2. leefrom

    leefrom Active Member

    Joined:
    May 27, 2008
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    You should be able to make the DNS and Apache changes fairly trivially using the cpanel xml-api:

    XML and JSON APIs

    It sounds like the DNS is the only thing you'll really need to automate via cpanel, from your description.
     
Loading...

Share This Page