From owner-freebsd-questions Wed Sep 13 9:33:54 2000 Delivered-To: freebsd-questions@freebsd.org Received: from online.dct.com (online.dct.com [204.29.185.1]) by hub.freebsd.org (Postfix) with ESMTP id 318EA37B424 for ; Wed, 13 Sep 2000 09:33:52 -0700 (PDT) Received: (from markm@localhost) by online.dct.com (8.9.3/8.9.3) id LAA23288; Wed, 13 Sep 2000 11:33:49 -0500 (CDT) Date: Wed, 13 Sep 2000 11:33:48 -0500 From: Mark To: Steve Price Cc: freebsd-questions@FreeBSD.ORG Subject: Re: SSL apache question Message-ID: <20000913113348.A26487@online.dct.com> Reply-To: markm@gbonline.com References: <20000913112725.I55208@bsd.planetwe.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000913112725.I55208@bsd.planetwe.com>; from sprice@hiwaay.net on Wed, Sep 13, 2000 at 11:27:25AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 > > DocumentRoot /foo > ServerName www.foo.com > > > DocumentRoot /bar > ServerName www.bar.com > > > 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