Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache 2.0.59 +SSL Windows Server 2003 |
|
Author |
|
timecott01
Joined: 10 Jul 2007 Posts: 3 Location: West Sussex, England
|
Posted: Tue 10 Jul '07 18:54 Post subject: Apache 2.0.59 +SSL Windows Server 2003 |
|
|
Hello apache hostmasters, perhaps someone can help me out here. hopefully this is not the question that everybody asks the forum.
I run Apache 2.0.59 with OpenSSL (0.9.8d) on Win Server 2k3.
I have recently added the SSL functionality to a site which already has several http websites defined using VirtualHost entries. This all works fine.
i now require two of these sites to work with https.
I have defined the two sites in ssl.conf and the httpd.conf has an 'include ssl.conf' statement. the two VirtualHost sections in ssl.conf are <site>:443 etc. I have created two self-signed certificates for testing purposes.
it works - sort of.
if i browse to the server with https, i get the cert for the FIRST host defined in ssl.conf - even if i do https://<site2>. if i accept the cert, i get the FIRST website defined in ssl.conf, not site2.
if i swap the order of the virtualhost definitions round, i get the other site.
it seems as though i will only ever get the first host defined in ssl.conf. the virtualhost definitions are not wildcarded - they both have full site names.
I am happy to mail httpd.conf, ssl.conf etc. or any other conf file to anyone if the content requires to be checked.
any information welcome.
thank you.
tim ecott
west sussex england. |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 611 Location: Milford, MA, USA
|
Posted: Wed 11 Jul '07 6:46 Post subject: |
|
|
Unfortunately, you cannot use virtual hosts with SSL.
This is a frequently-asked Apache/SSL question. Please see the entry: in the Apache 2.0 SSL FAQ.
-tom- |
|
Back to top |
|
timecott01
Joined: 10 Jul 2007 Posts: 3 Location: West Sussex, England
|
Posted: Thu 12 Jul '07 18:02 Post subject: Apache 2.0.59 +SSL Windows Server 2003 |
|
|
Thank you for your reply.
I now have to figure out another way of getting my two SSL hosts up and running!
Much obliged. |
|
Back to top |
|
|
|
|
|
|