More SSL hosts in one ssl.conf

"Julius Thyssen" <[email protected]>
Newsgroups gmane.comp.apache.mod-ssl.user
Message-ID <[email protected]>
HI,

I have a VPS listening to 2 different public IP-adresses.
For ALL http and a https virtual host requests it currently listens to only 1 IP

The  ssl.conf  therefore has

     Listen xxx.xxx.xxx.xx1:443
     Listen xxx.xxx.xxx.xx1:81

     <VirtualHost _default_:443>

in it.  And  httpd.conf  therefore has

     Listen xxx.xxx.xxx.xx1:80

     NameVirtualHost *:80

     <VirtualHost *:80>

I'd like to run another SSL host, on the other IP-address, mainly
because I want to use a different name and document root for it.
This host has a name not existing for the other IP-hosts, and
the new/extra host needs only SSL, and will not need a port 80 one,
although auto-rewrite to the https would be nice for it.
(I have this for the existing hosts and aliases, so I know how to do that.)

How does one best accomplish this?

I've looked really hard, but could not find info on this,
my guess is not many servers *can* listen to 2 different IPs.

I've been considering to construct something where a different
document root would be used with a certain name request, through rewrite,
and then the other hostname would be an alias of the main ones,
but that seemed overly complex since I do have the other IP I can use.

Thanks in advance for any advice on this.


Julius
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [email protected]
Automated List Manager                            [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.