Having trouble visualising how IP-Based Virtual Host (with SSL) would work. Here is my vhosts.conf file:
#Define Name Virtal Host
#Used to replace the main server host. The log file will reside in /var/log/httpd/error_log
CustomLog /var/log/httpd/domain1/access_log common
CustomLog /var/log/httpd/domain2/access_log common
I want to host a coupld of websites with SSL. So I can, using ip aliasing create two virtual interfaces: eth0:1 and eth0:2 and assign to them 10.10.0.55 and 10.10.0.56 respectively. Now, my question is, will I have to forward port 443 to 10.10.0.55 and 10.10.0.56? I can't forward a port to two ip's at the same time.
Let's say I just want to host one website with SSL. If I do
Other SSL Directives ....
CustomLog /var/log/httpd/domain3/access_log common
How will it work? I will need to forward port 443 to the 10.10.0.55 interface right? Without doing that, there is no way this is going to work... is there? And that means that I can't run more than 1 ip-based SSL virtual host on one machine because I can't forward 443 to two different interfaces.
Also, do I use internal ip address or external ip address in the <VirtualHost > tag? I only have one static public ip.
Thanks for all your help in advance