From owner-freebsd-questions Thu Jun 7 11: 7:48 2001 Delivered-To: freebsd-questions@freebsd.org Received: from antares.gecadsoftware.com (antares.gecadsoftware.com [193.230.167.76]) by hub.freebsd.org (Postfix) with SMTP id 9926F37B401 for ; Thu, 7 Jun 2001 11:07:40 -0700 (PDT) (envelope-from teo@gecadsoftware.com) Received: (qmail 19334 invoked from network); 7 Jun 2001 18:08:02 -0000 Received: from unknown (HELO taz.gecadsoftware.com) (193.230.245.17) by antares.gecadsoftware.com with SMTP; 7 Jun 2001 18:08:01 -0000 Received: from teo.gecadsoftware.com ([193.230.245.169]) by taz.gecadsoftware.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id M34273N3; Thu, 7 Jun 2001 21:05:23 +0300 Received: (qmail 6285 invoked by uid 500); 7 Jun 2001 18:05:38 -0000 Date: Thu, 7 Jun 2001 21:05:38 +0300 From: teo@gecadsoftware.com To: Subject: Re: Different document roots for secure HTTP and HTTP Message-ID: <20010607210538.A6275@gecadsoftware.com> Reply-To: teo@gecadsoftware.com Mail-Followup-To: teo@gecadsoftware.com, References: <200106070516.f575Fxh08890@xyzzy.intranet.snsonline.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.15i In-Reply-To: ; from jim@freeze.org on Thu, Jun 07, 2001 at 08:44:31AM -0400 Organization: GeCAD Software Comment: Worry less, RAV is watching! X-Operating-System: Linux 2.2.16 i686 up 6:30, 1 user, load average: 0.01, 0.02, 0.00 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi Jim! On Thu, 07 Jun 2001, Jim Freeze wrote: > > On Thu, 07 Jun 2001 15:06:47 +1000, BSD Freak said: > > > > :: Hi all > > :: > > :: Does anyone know if it possible to run Apache with different ports for > > :: secure HTTP and ordinary HTTP. For example I want to run my web server > > :: as follows: > > :: > > :: port 443 (HTTPS) directed to document root /var/www-secure > > :: port 80 (HTTP) directed to document root /var/www > > I don't think this can be done through the config file directly. > You probably will have to resort to mod_rewrite. > With rewrite you can essentially map any url to any other url. > yes, it is possible. for 443 (secure) you have a default virtual host, see the added config stuff done by mod_ssl. You can configure a different documentRoot. same goes with 80 (http), which defaults to your documentRoot setting. give some more detail of what you want to achive. ciao -- teodor To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message