I am attempting to run two domains with two different ip's on one apache server.


I have a webserver setup for myself with two domains. Both need ssl.
I am running fedora 10 Apache/mod_ssl.
Both are currently already running on port 80 in /etc/httpd/httpd.conf. With one ip. and no problems.






I am trying to configure ssl.conf to recognize two different ip addresses, one for each domain.

These two are in /etc/httpd/conf.d/ssl.conf

Each has their own Vhost containers (NamedVirtualHHost)

<VirtualHost 192.xxx xxx x01 :443> (these are not real ip's i am using static ip's)
blabla
blabla
</VirtualHost>


<VirtualHost 192.xxx xxx x02 :443>
blabla
blabla
</VirtualHost>

I call https... first site works ok

I call https....for the second site and it calls the first installed ssl cert: result (bad cert) not for this domain name.

Apache does not separate the two.

My question, how do I get apache
to deliver https..domain_one and domain_two correctly? And separate from each other.

Thank you in advance