Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Sep 2000 11:33:48 -0500
From:      Mark <markm@online.dct.com>
To:        Steve Price <sprice@hiwaay.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: SSL apache question
Message-ID:  <20000913113348.A26487@online.dct.com>
In-Reply-To: <20000913112725.I55208@bsd.planetwe.com>; from sprice@hiwaay.net on Wed, Sep 13, 2000 at 11:27:25AM -0500
References:  <20000913112725.I55208@bsd.planetwe.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thus spake Steve Price (sprice@hiwaay.net):

> Hi all,
> 
> I can't get to the apache.org site and I have question that
> is just eating me up to know the answer to.
> 
> Is it possible to have multiple SSL-enabled websites hosted
> on a single box?  I'm pretty sure one can do this but I'll
> be darned if I can figure out how. :/
> 
> Here's a distillation of what I believe to be the relevant
> lines in my apache.conf.
> 
> NameVirtualHost 192.168.21.21
> <VirtualHost 192.168.21.21:443>
>  DocumentRoot /foo
>  ServerName www.foo.com
> </VirtualHost>
> <VirtualHost 192.168.21.21:443>
>  DocumentRoot /bar
>  ServerName www.bar.com
> </VirtualHost>
> 
> When I access https://www.foo.com/ I get foo's pages, but when
> I access https://www.bar.com/ I still get foo's pages.
> 
> What am I doing wrong?

Yes, you can have multiple SSL sites on a box.  What you really need is a line
like:

NameVirtualHost 192.168.21.21:443

Didn't you get any warnings when you started the webserver about multiple
definitions for 192.168.21.21:443?  You should have.

Hope that helps,

-- 
Mark Maurer  markm@solinus.com   Programmer, Solinus Inc. 

Play:        markm@gbonline.com  http://www.dct.com/~markm/
Other:       mark@thecity.com    mark@mail2go.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000913113348.A26487>