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 with SSL name based Virtual Host |
|
Author |
|
Qmpeltaty
Joined: 06 Feb 2008 Posts: 182 Location: Poland
|
Posted: Thu 13 Aug '09 15:35 Post subject: Apache with SSL name based Virtual Host |
|
|
Hi
I need to provide access with http and https for two different domains on one Apache and one IP address. Basically one site has to be available on two addresses --> www.mydomain.com is main site and www.mydomain1.com will be same site, same IP address just different name. Both of them had to be available by HTTPS. Moreover second domain will automatically redirect every http and https requests to main domain but signed cert + virtualhost has to be correctly configured to do so.
How to set up name-based virtual host with SSL with Apache/2.2.9 (Win32) mod_jk/1.2.25 mod_ssl/2.2.9 OpenSSL/0.9.8h PHP/5.2.6
Thnks in advance for all tips |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 13 Aug '09 17:04 Post subject: |
|
|
With a single IP adress you can set up multiple SSL Vhost which each own ssl cert only with Apache 2.2.12 or greater, cause you need SNI.
For name based vhosts in generell see the docs http://httpd.apache.org/docs/2.2/en/vhosts/name-based.html
Here a link to a SNI sample config for the two SSL vhosts.
http://pastebin.org/8779
Notice: SNI does not work with IE on XP or W2k or W2k3
if you still have a question please ask again. |
|
Back to top |
|
|
|
|
|
|