Hi, I just added a seccond ipadress with ispconfig to the server. When i go to ispconfig websites, and select a website. I assign the new ipaddress to this website. And changed DNS A record for this website with the new ipaddress. But when viewing this website, i get a message Server not found.. Even changed my local hostfile to this ipaddress. Do i have to do anything else to get this working?
Please make sure that you configured the IP also in the network card configuration file of the linux distribution.
Hi Till, Thanks for your reply! How do i configure this? I found something like this: /etc/network/interfaces: Code: auto eth0 lo iface eth0 inet static address 178.21.111.181 netmask 255.255.255.0 gateway 178.21.111.1 iface lo inet loopback My seccond IP address wil be: 178.21.111.222 How can i add this?
To add an additional IP, add lines like this at the end of the file: Code: auto eth0:0 iface eth0:0 inet static address 192.168.0.101 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 If you want to add more IP's, the virtual interface names are eth0:0, eth0:1, eth0:2, eth0:3 etc.
Okay thats worked!! But now i have a problem. Can i only assign one website to this ipaddress? Because when i assign a website to this new ipaddress, and added a seccond website to this address. And when i visit this new websites, i get every time the same site. so for example: example1.com has new ip example2.com has new ip when i visit example1.com i get the website example2.com and example2.com is example2.com
You can assign as many websites to a IP as you want. Just make sure that every website has the correct IP assigned in the website settings and in DNS and that you selected auto subdomain www in every website if you want to be able to access the website also with www.domain.tld and not jsut domain.tld.