yesterday I spent almost all day by searching how to properly setup more SSL sites on more IPs but nothing works. I have read several posts here but nothing solved my problem .
I am now working with test server with IP 192.168.0.252. I have created new virtual server test.tld with Network interface for example 192.168.0.10 and External IP address 192.168.0.252 (I expect external IP should be IP of the main server because only this server will be visible from public network). I expect too that if I write test.tld (which points now to main server) the server will solve it to website on 192.168.0.10. But it point to site on 192.168.0.252. When I write to address bar 192.168.0.10 I get correct site but in this case I don’t know how it’s possible to access these SSL sites from public network. It’s needed for them public IPs?
I have tried to to put some shared IP adresses in Virtualmin’s Addresses and Networking/Shared IP Addresses and select them when creating this server. I have also tried to create virtual network interface first in Webmin’s Networking/Network Configuration/Network Interfaces and then assign it’s IP to new virtual server but with the same result as in the first case. I can access the site with only it’s IP and not through main server.
Maybe it’s correct behaviour and I just don’t know how it works. Then I would like to ask how it’s possible to route from main server to my private address when I type test.tld?
Thanks for any help.