I’m trying to assign 2 separate virtual servers that need their own IP addresses for ssl. I have one shared IP and 2 other dedicated IP’s bound to this server through webmin >> networking >> network configuration >> Network Interfaces >> eth0:1 and eth0:2
You can see here:
http://216.83.111.209 https://test.clickacart.com
http://216.83.111.205 https://core.clickacart.com
I go in and edit the virtual servers and put these IP’s in Configurable settings >> external IP >> other IP.
I also then enable ssl in the enable features section.
I tried putting the IP’s in virtualmin >> Addresses and Networking >> Shared IP Addresses each per line.
Nothing seems to work to get these domains to come up separately showing their own website files and ssl. It only loads the /var/www/html folder for both.
btw, i’m on a kvm vps. Here’s my ifconfig:
eth0 Link encap:Ethernet HWaddr 00:16:3C:D1:74:16
inet addr:216.83.111.210 Bcast:216.83.111.255 Mask:255.255.255.0
inet6 addr: fe80::216:3cff:fed1:7416/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:670972 errors:0 dropped:5595 overruns:0 frame:0
TX packets:291235 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:687742499 (655.8 MiB) TX bytes:48673052 (46.4 MiB)
Interrupt:10 Base address:0x8000
eth0:1 Link encap:Ethernet HWaddr 00:16:3C:D1:74:16
inet addr:216.83.111.205 Bcast:216.83.111.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:10 Base address:0x8000
eth0:2 Link encap:Ethernet HWaddr 00:16:3C:D1:74:16
inet addr:216.83.111.209 Bcast:216.83.111.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:10 Base address:0x8000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4841 errors:0 dropped:0 overruns:0 frame:0
TX packets:4841 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:447465 (436.9 KiB) TX bytes:447465 (436.9 KiB)
What happens when you enter the respective IP address for each virtual server in Server Configuration / Change IP address : New IP address / Use private address?
To make sure your Apache virtual hosts are set up correctly, go to Webmin / Servers / Apache Webserver and check the Existing Virtual Hosts list there.
ok, i checked and yes, the IP’s are still set to the main shared IP. but how do I change this? I can’t find any setting to change the ip address in the virtual host area.
Well, for existing domains, the Change IP Address form does that: Change the IP address. So just enter the desired private IP there and click Change now.
For new domains, you enter the private IP under “IP address and forwarding” when creating the domain.
awesome! I knew it was easier than what I was making it out to be. I just did it so long ago I forgot and then looked up old forum posts that confused me and made it much more complicating for no reason. I removed the IP’s from the network configuration area and changed the IP’s and all is well.