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

Notices

Reply
 
Search this Thread
Old 10-19-2007, 05:11 PM   #1
Alfar
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 www.site1.com, www.site2.com in,

NameVirtualHost 192.168.1.1:443

<VirtualHost www.site1.com:443>
SSLCertificate key1.pem
</VirtualHost>

<VirtualHost www.site2.com:443>
SSLCertificate key2.pem
</VirtualHost>

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
billymayday
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

http://www.linuxquestions.org/questi...ntroot-593131/
 
Old 10-20-2007, 01:10 AM   #3
complich8
Member
 
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.
 
  


Reply


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 06:18 PM.

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