Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 19
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    4

    Default CPanel -> Addon Domains -> Choose IPs?

    I just move from Plesk to CPanel.

    Using WHM, I created an account named "test.com" and it is tied to IP address xxx.xxx.xx.35. I went into "test.com" CPanel and added on a domain "test2.com".

    I want test2.com to have an IP address of xxx.xxx.xx.36.

    How can I manage this? Is the only solution to create a separate account in WHM for test2.com?

    Thanks!

  2. #2
    Member chandro's Avatar
    Join Date
    Nov 2005
    Location
    /home/chandro
    Posts
    99
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    check on WHM the ip management, there is on IP SETTINGS a option that all domains go to the main ip, not individual ip.
    http://www.dedicados.com.mx
    msn: ventas[@]dedicados.com.mx
    Servidores - Dominios - Hosting - Shoutcast

  3. #3
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by daiverman View Post
    I just move from Plesk to CPanel.

    Using WHM, I created an account named "test.com" and it is tied to IP address xxx.xxx.xx.35. I went into "test.com" CPanel and added on a domain "test2.com".

    I want test2.com to have an IP address of xxx.xxx.xx.36.

    How can I manage this? Is the only solution to create a separate account in WHM for test2.com?

    Thanks!
    We don't support having multiple domains on multiple IP Addresses with a single account. We only support a single IP Address per account. Hence to do what you are requesting, at this time, requires setting up each domain as its own account.

    There are various hackish ways around this, but will likely cause headaches in the long term such modifications will be unsupported.

  4. #4
    Registered User
    Join Date
    Oct 2003
    Location
    Atlanta, GA
    Posts
    121

    Default

    Has this been changed yet? is there a way to set a dedicated IP to a sub or addon domain?

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by devGOD View Post
    Has this been changed yet? is there a way to set a dedicated IP to a sub or addon domain?
    A single cPanel account can only have 1 dedicated IP address. However, if you create the subdomain and add-on domain as separate cPanel accounts, you could issue those a dedicated IP address as well (since they're separate cPanel accounts).

  6. #6
    Member
    Join Date
    Aug 2008
    Posts
    37

    Question

    Are there any plans to introduce this in the (near) future? In my opinion, it is the one thing which leaves cPanel behind some other control panels. With the current situation, it is not possible to install an SSL certificate for more than one domain in an account. Additionally, I would suggest that you add support for true multi-domain hosting (not just addon domains).

    I believe these features have been requested for a long time by many people. It should not be that hard to implement, but it would make a huge difference.

  7. #7
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Sindre View Post
    Are there any plans to introduce this in the (near) future? In my opinion, it is the one thing which leaves cPanel behind some other control panels. With the current situation, it is not possible to install an SSL certificate for more than one domain in an account. Additionally, I would suggest that you add support for true multi-domain hosting (not just addon domains).

    I believe these features have been requested for a long time by many people. It should not be that hard to implement, but it would make a huge difference.
    I am not aware of any near-term plans for implementing this (e.g. 11.25 or 11.26). However, that doesn't mean it's off-limits for incorporation into cPanel/WHM, just that it may be a while before we see this functionality.

    You mention "true" multi-domain hosting. In cPanel 11, an addon domain doesn't need to reside in a subdirectory of the primary domain's website anymore, so you can have multiple websites that are separate from one another yet under the same cPanel account. In addition to the SSL issue, is there anything specific you are looking for?

  8. #8
    Member
    Join Date
    Aug 2008
    Posts
    37

    Default

    Quote Originally Posted by cPanelDavidG View Post
    I am not aware of any near-term plans for implementing this (e.g. 11.25 or 11.26). However, that doesn't mean it's off-limits for incorporation into cPanel/WHM, just that it may be a while before we see this functionality.

    You mention "true" multi-domain hosting. In cPanel 11, an addon domain doesn't need to reside in a subdirectory of the primary domain's website anymore, so you can have multiple websites that are separate from one another yet under the same cPanel account. In addition to the SSL issue, is there anything specific you are looking for?
    Hi David,

    Thanks for the reply.

    I know you can specify a document root outside of the public_html for new addon domains, however, the way cPanel handles addon domains internally is like a "hacked" subdomain solution. Let me explain what I mean by "true" multi-domain hosting.

    Lets say I have an cPanel account with the main domain "domain1.com". Then I want to add a second domain "domain2.com". This generates a subdomain domain2.domain1.com, and the domain2.com is just set up as a ServerAlias. Why not just create a vhost entry for domain2.com, keeping it totally separate from domain1.com? I am really confused why you implemented it this way in the first place.

    In fact, I don't think there should be such thing as a "main domain". All domains should be treated equally, with the possibility to assign each one a specific IP address. I also suggest that you move away from the single "public_html" directory. Why not use one directory "domains", which every domain's web root is stored under:

    home_dir/domains/domain1.com/
    home_dir/domains/domain2.com/

    Possibly, with a public_html/www directory under each domain folder.

    I hope that in a future version, you will abandon the whole "addon domains" concept, and replace it with a section "Domains". You should also make it possible to change the document root of a domain.

    I think the changes I have described above would make cPanel an even better control panel. The lack of proper multi-domain support is the top reason most of our clients hesitate to use cPanel.

    I understand these enhancements would require some major changes to the core system and it is not something I expect to see in the next release, but I hope it can be put a bit higher on the priority list.

  9. #9
    Registered User
    Join Date
    Jun 2006
    Posts
    4

    Default

    I absolutely agree with the above post. We have just hit the same roadblock with one of our clients who's hosted on WHM/cPanel servers, but there are no reseller accounts offered. In fact, our client doesn't even need reseller privileges for a single sake of having 2 web sites with separate SSL certs.

    However, instead of
    Quote Originally Posted by Sindre View Post
    home_dir/domains/domain1.com/
    home_dir/domains/domain2.com/
    I'd rather see:

    home_dir/domain1.com/www
    or
    home_dir/domain1.com/public_html

    which would make perfect sense.

  10. #10
    Member
    Join Date
    May 2008
    Posts
    1,203

    Default

    Quote Originally Posted by cPanelDavidG View Post
    A single cPanel account can only have 1 dedicated IP address. However, if you create the subdomain and add-on domain as separate cPanel accounts, you could issue those a dedicated IP address as well (since they're separate cPanel accounts).
    What if someone want to install SSL certificate on an addon domain? Since SSL certificate can only be installed on a dedicated IP address.

    Will it not be possible?

  11. #11
    Member
    Join Date
    Jul 2008
    Location
    localhost
    Posts
    101

    Thumbs up

    Quote Originally Posted by thewebhosting View Post
    What if someone want to install SSL certificate on an addon domain? Since SSL certificate can only be installed on a dedicated IP address.

    Will it not be possible?
    It is possible to install SSL certificate on the Addon domain You can assign dedicated Ip for the Addon domain and proceed with the SSL installation on the Addon domain..

  12. #12
    Member
    Join Date
    Aug 2008
    Posts
    37

    Default

    Quote Originally Posted by chinmay View Post
    It is possible to install SSL certificate on the Addon domain You can assign dedicated Ip for the Addon domain and proceed with the SSL installation on the Addon domain..
    Not if an SSL already is installed on the main domain, as they share the same (dedicated) IP.

    I have found a workaround for this problem, but it requires manual configuration. It is possible to edit the IP of the vhost template in /var/cpanel/userdata/... Only 1 line needs to be changed. cPanel could quite easily implement this fix if they wanted to.

  13. #13
    Member
    Join Date
    Jun 2007
    Posts
    150

    Default Please explain your work around...

    Quote Originally Posted by Sindre View Post
    Not if an SSL already is installed on the main domain, as they share the same (dedicated) IP.

    I have found a workaround for this problem, but it requires manual configuration. It is possible to edit the IP of the vhost template in /var/cpanel/userdata/... Only 1 line needs to be changed. cPanel could quite easily implement this fix if they wanted to.
    What line needs to be changed? Please explain the work around.

  14. #14
    Member
    Join Date
    Aug 2008
    Posts
    37

    Default

    Quote Originally Posted by gkgcpanel View Post
    What line needs to be changed? Please explain the work around.
    Open the vhost template corresponding to your domain/addon domain in /var/cpanel/userdata/%username%/%domain_name%.

    Locate the line with the IP address, and change it to a dedicated IP.

    Run /scripts/rebuildhttpdconf to rebuild the Apache config, and then restart Apache for the changes to take effect.

    You will now be able to install an SSL certificate on both the main domain and the addon domain.

  15. #15
    Member
    Join Date
    Jan 2005
    Location
    London, UK
    Posts
    187

    Default

    Quote Originally Posted by cPanelDavidG View Post
    an addon domain doesn't need to reside in a subdirectory of the primary domain's website anymore, so you can have multiple websites that are separate from one another yet under the same cPanel account
    I wasn't aware of this new method.
    What do I need to do to implement it?

    Thanks,

    - Vince

Similar Threads & Tags
Similar threads

  1. Allowing IPs and domains through firwall in cpanel whm
    By mrtext in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 05-17-2011, 07:44 AM
  2. cant addon domains and park domains in cpanel
    By Nicolas.Wang in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-09-2010, 11:31 AM
  3. Replies: 0
    Last Post: 01-09-2008, 11:41 AM
  4. Falsche IPs bei Addon Domains
    By ezztro in forum Diskussion auf Deutsch
    Replies: 6
    Last Post: 05-11-2007, 06:13 AM
  5. Addon Domains (Dedicated IPs)
    By rgyure in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-04-2005, 04:21 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube