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.

Giving Dedicated IP to AddOn Domains?

Discussion in 'General Discussion' started by Daemonia, Apr 2, 2005.

  1. Daemonia

    Daemonia Member

    Joined:
    Jan 22, 2004
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    How would I go to assign a Dedicated IP address to an AddOn Domain (for SSL) under an account while leaving the parent account on the Shared IP?

    Thanks!
     
  2. visiox

    visiox Well-Known Member

    Joined:
    Jan 19, 2004
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Hi there,

    if you are talking about a sub-domain, there are, as i know, two possible ways.

    1) create a new account, for example "secure.yourdomain.com" instead of "yourdomain.com"
    2) a)direct edit; go into /usr/local/apache/conf/httpd.conf and b) Add new IP to your DNS

    Guido
     
  3. Daemonia

    Daemonia Member

    Joined:
    Jan 22, 2004
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    There's MAINACCOUNTDOMAIN.COM under the mainaccount and under that there's secure.mainaccountdomain.com which is in fact securedomain.com.

    Which part of httpd.conf do I edit?

    Thanks.
     
  4. visiox

    visiox Well-Known Member

    Joined:
    Jan 19, 2004
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Ok if i got you right...

    If your shared ip is 10.10.10.10 and your dedicated ip is 10.10.10.11 then try

    NameVirtualHost 10.10.10.10:80

    <VirtualHost 10.10.10.10>
    ServerName www.server1.com
    </VirtualHost>
    <VirtualHost 10.10.10.10>
    ServerName www.server2.com
    </VirtualHost>
    <VirtualHost 10.10.10.10>
    ServerName www.server3.com
    </VirtualHost>

    NameVirtualHost 10.10.10.11:80

    <VirtualHost 10.10.10.11>
    ServerAlias www.securedomain.com secure.mainaccountdomain.com www.secure.mainaccountdomain.com
    ServerAdmin webmaster@seciredomain.com
    DocumentRoot /home/secure/public_html
    BytesLog domlogs/securedomain.com.com-bytes_log
    ServerName www.securedomain.com
    User secure
    Group secure
    CustomLog domlogs/securedomain.com combined
    ScriptAlias /cgi-bin/ /home/secure/public_html/cgi-bin/
    </VirtualHost>
     
Loading...

Share This Page