Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-19-2007, 05:11 PM   #1
LQ Newbie
Registered: Dec 2006
Posts: 15

Rep: Reputation: 0
Apache2 VirtualHost and SSL

Hello, I have a question regarding apache2 and ssl. Suppose you have two virtual hosts on one ip address. Say, in,


SSLCertificate key1.pem

SSLCertificate key2.pem

I am trying to give each site its own SSL certificates but it doesnt seem to work. key1 seems to take precedence. Can anyone explain and suggest an alternative?

Thank you
Old 10-19-2007, 05:32 PM   #2
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Maybe my response here will help
Old 10-20-2007, 01:10 AM   #3
Registered: Oct 2007
Distribution: rhel, fedora, gentoo, ubuntu, freebsd
Posts: 104

Rep: Reputation: 15
Or for the really short version: ssl negotiation happens before virtualhost resolution, so you can only have one SSL cert per ip address or port. Either bind one of them to a nonstandard port or bind them both to distinct ip's on the standard port.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using VirtualHost with single IP in Apache2 gurl4sh25 Linux - Server 2 05-06-2007 09:32 AM
Apache, VirtualHost and SSL Mr_CHISOL Linux - Server 2 02-16-2007 03:59 PM
SSL & NameBased VirtualHost ?? RHrulz Linux - Networking 1 12-12-2004 05:33 PM
SSL Configuration on an Apache VirtualHost sancho5 *BSD 6 07-29-2002 08:09 AM

All times are GMT -5. The time now is 03:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration