1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

2 IPs to 1 domain

Discussion in 'Plesk for Linux - 8.x and Older' started by Dawn, May 17, 2006.

  1. Dawn

    Dawn Guest

    I've bought a SSL cert for a domain. So that domain needs its own ip address. I've got an ip left. But when I assign the new IP to this domain I've got to change the nameserver entry.

    So my question is how can I asign two IP's to a domain? That would be perfect and there wouldn't be any time which isn't the domain (the website) unavailable over the dns name...

    I hope anybody can help me with that problem...

    Greets and THX anyway,
  2. AndyD

    AndyD Guest

    I'm looking to do the same, but the other way round to free up IPs; i.e. moving a domain from an exclusive IP to a shared IP, but with zero downtime while the DNS updates.

    So I'd like to know if this is possible too.
  3. Dawn

    Dawn Guest

    I found a solution.. It's not the best, but it makes your website available.

    If you understand german you can read about it here:

    I try to explain it in english too, but my english isn't very good ;)

    First of all I have to explain that this solution doesn't makes all services (for example mail, ftp....) avaiable over the second IP, but you can reach the website at both IP's.

    1. You have to copy your current /var/www/vhosts/domain.com/conf/http.2ndip (I can only give you my debian pathnames) to /var/www/vhosts/domain.com/conf/http.2ndip.

    2. Edit http.2ndip and replace all ip adresses with the new ip adress. You have to do that for the HTTP as the HTTPS part.

    3. Now you have to edit your /var/apache2/apache2.conf and include at the end the line "Include /var/www/vhosts/domain.com/conf/http.2ndip"

    4. If the DNS-entry is pointing to the old ip-adress your website is reachable as normal. If the IP change for the DNS-entry your website is reachable at the new ip.

    5. Change the IP as soon as possible in plesk to make all services available. You can check to which IP the DNS-entry points with a "ping domain.com -t".

    I hope that helps you. If anybody out there has got a better solution, it would be nice to know it.