Multiple Servers and IP Addresses

Discussion in 'General' started by cgorms, Mar 14, 2012.

  1. cgorms

    cgorms New Member

    I followed the HowtoForge for "Multiserver Setup With Dedicated Web, Email, DNS & MySQL Database Servers On Debian Squeeze With ISPConfig 3" which is excellent.

    I have a couple of websites I wish to host they have external IP Addresses for each I have setup the external address under the "Server IP Addressess" section allocated them to a website and setup DNS but when I test shutting down the main server the backup or second server doesn't have the external address.

    Am I doing something wrong?
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    The setup that you used above is for dedicated systems where each server hosts different services, so the setup you had choosen is not a mirror setup, it is a setup that splits email, web and dns to different servers.

    A mirror setup is e.g. this one, http://www.howtoforge.com/installin...tabase-cluster-on-debian-6.0-with-ispconfig-3 which allows you to access sites on both servers simultaniously without the need to switch any IP addresses. If you want to switch IP's between servers then take a look at e.g. keepalived or heartbet which can be used together with ispconfig 3.
     
    Last edited: Mar 14, 2012
  3. cgorms

    cgorms New Member

    Hi Till,

    Thanks for getting back to me so quick. My mistake the guide you suggested is the one I followed. But I am still having an issue accessing the website from both servers I must be doing something wrong?
     
  4. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    There are at least 2 options:

    a) You switch the IP address with e.g. heartbeat or keepalived between the servers when one server fails.

    or b) You select * instead of a IP address in the website settings. This means that the site is now available on both servers independant of the IP address. So you can use load balancers, round robin dns etc. with this option without the need to switch a IP address.
     
  5. cgorms

    cgorms New Member

    No sure if I explained myself very well. I have 1 master and 1 slave ISPConfig Servers I and trying to host a website. The website has an external IP Address allowing access over the Internet where do I assign this IP?
     
  6. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Your server is in a internal network with internal IP addresses (NAT)? In this case you dont assign the external IP on the server, the server uses a internal IP address and the assignment from the external Ip to the internal IP address is configured on your router.
     
  7. cgorms

    cgorms New Member

    I understand what you are saying just to be more of a pain the issue I have is I don't manage my router it is a service I buy into which is complicated. My Site Domain names are setup with 123-reg if I change the name servers to point to my ISPconfig servers which have external IP addresses and set the sites IP's to * and configure DNS for the sites would this potentially work? Or is more complicated than that.
     
  8. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

Share This Page