Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Multiple and separate SSL Virtual hosts

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  apache  
Author Message
batman

External


Since: Oct 27, 2003
Posts: 3



(Msg. 1) Posted: Mon Nov 10, 2003 9:41 pm
Post subject: Multiple and separate SSL Virtual hosts
Archived from groups: alt>apache>configuration (more info?)

Ok. I have in my httpd.conf:
-------------------
Listen 80
Listen 443
<VirtualHost 1.2.3.4:80>
ServerName www.xyz.com
DocumentRoot /home/apache/www.xyz.com
</VirtualHost>
<VirtualHost 1.2.3.5:80>
ServerName www.abc.com
DocumentRoot /home/apache/www.abc.com
</VirtualHost>
<VirtualHost 1.2.3.4:443>
ServerName www.xyz.com
DocumentRoot /home/apache/www.xyz.com
SSLCertificateFile /root/www.xyz.com.crt
SSLCertificateKeyFile /root/www.xyz.com.key
</VirtualHost>
<VirtualHost 1.2.3.5:443>
ServerName www.abc.com
DocumentRoot /home/apache/www.abc.com
SSLCertificateFile /root/www.abc.com.crt
SSLCertificateKeyFile /root/www.abc.com.key
</VirtualHost>
-------------------------

Now the problem is that both sites use the www.abc.com crt/key pair. I
can NOT figure out how to get two separate sites with two separate IPs
and two separate certificate/keys to work! I see lots of folks have
asked the question, but I do not see an answer!

Any help out there?

Brian Andrus

 >> Stay informed about: Multiple and separate SSL Virtual hosts 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2994



(Msg. 2) Posted: Tue Nov 11, 2003 8:53 am
Post subject: Re: Multiple and separate SSL Virtual hosts [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Brian Andrus <batman RemoveThis @thundermail.com> wrote:
 > and two separate certificate/keys to work! I see lots of folks have
 > asked the question, but I do not see an answer!

Well, because there isn't an answer. The problem is that the server
need to decrypt the connection before he can decide where to send the
data, and to decrypt, he need the certificate. So you get the
certificate before he can decide which VHost get the call.

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Multiple and separate SSL Virtual hosts 
Back to top
Login to vote
batman

External


Since: Oct 27, 2003
Posts: 3



(Msg. 3) Posted: Wed Nov 12, 2003 12:27 pm
Post subject: Re: Multiple and separate SSL Virtual hosts [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

That doesn't make a lot of sense to me, since I am using different IPs
for each VirtualHost. As soon as it receives a connection, apache
should know which cert to use, instead it uses the last one listed,
regardless of which virtualhost IP it was assigned to.

It is easily done in IIS to assign a different cert to each IP, so I
know it is possible.

Brian Andrus

Davide Bianchi <davideyeahsure DeleteThis @onlyforfun.net> wrote in message news:<bopth3$1hdrqn$1@ID-18487.news.uni-berlin.de>...
 > Brian Andrus <batman DeleteThis @thundermail.com> wrote:
  > > and two separate certificate/keys to work! I see lots of folks have
  > > asked the question, but I do not see an answer!
 >
 > Well, because there isn't an answer. The problem is that the server
 > need to decrypt the connection before he can decide where to send the
 > data, and to decrypt, he need the certificate. So you get the
 > certificate before he can decide which VHost get the call.
 >
 > Davide<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Multiple and separate SSL Virtual hosts 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Sharing configuration between multiple virtual hosts - My current configuration of Apache has several name-based virtual hosts (2 for each domain). One for use with SSL (Port 443) and one for use without (Port 80). The problem is that the configuration for all different domains is exactly the same, except....

Multiple sets of dynamic virtual hosts - Hi. I have a bunch of virtual hosts like this: site1.john.company.com site2.john.company.com site3.john.company.com site1.paul.company.com site2.paul.company.com site3.paul.company.com I would like to use dynamic virtual hosting so I can jus...

very strange... multiple name based virtual hosts seem to .. - Hi there, It is said overall that multiple name based virtual hosts can't work with ssl (see for example http://httpd.apache.org/docs-2.0/ssl/ssl_faq.html#vhosts), but surprisingly I got it work with apache 2... From conf.d/ssl.conf: ..

Multiple Webalizer configs for Apache virtual hosts? - Apologies if this is the wrong group to ask this - I couldn't find a specific group for webalizer. I've set up a virtual hosts, with a CustomLog file, and I want to configure Webalizer to process that log, and place the output in a different place from...

anyone have multiple virtual hosts over SSL working on Ubu.. - I have been fighting my Apache2 config for months trying to get multiple virtual hosts working over SSL. Does anyone have this working for Ubuntu 7.10? I'd love to see how you've done it. Cheers, Scott
   Web Hosting Problem Solving Community! (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]