From owner-freebsd-questions Fri Jun 8 2:24:51 2001 Delivered-To: freebsd-questions@freebsd.org Received: from everest.wananchi.com (everest.wananchi.com [62.8.64.4]) by hub.freebsd.org (Postfix) with ESMTP id 1C83A37B405 for ; Fri, 8 Jun 2001 02:24:37 -0700 (PDT) (envelope-from wash@wananchi.com) Received: from wash by everest.wananchi.com with local (Exim 3.22 #2) id 158ITV-0008em-00 for freebsd-questions@FreeBSD.ORG; Fri, 08 Jun 2001 12:22:37 +0300 Date: Fri, 8 Jun 2001 12:22:37 +0300 From: Odhiambo Washington To: freebsd-questions@FreeBSD.ORG Subject: Re: Different document roots for secure HTTP and HTTP Message-ID: <20010608122237.K98797@everest.wananchi.com> Mail-Followup-To: Odhiambo Washington , freebsd-questions@FreeBSD.ORG References: <200106070516.f575Fxh08890@xyzzy.intranet.snsonline.net> <20010607210538.A6275@gecadsoftware.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="WhfpMioaduB5tiZL" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010607210538.A6275@gecadsoftware.com>; from "teo@gecadsoftware.com" on Thu, Jun 07, 2001 at 09:05:38PM +0300 X-Disclaimer: My opinions do not necessarily represent those of my employer. X-Operating-System: FreeBSD 4.3-STABLE i386 X-Mailer: Mutt http://www.mutt.org/ X-Location: Nairobi, KE, East Africa. X-Uptime: 12:21PM up 16 days, 1:26, 3 users, load averages: 0.18, 0.18, 0.16 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 --WhfpMioaduB5tiZL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * teo@gecadsoftware.com [20010607 21:06]: writing o= n the subject 'Re: Different document roots for secure HTTP and HTTP' teo> Hi Jim! teo> On Thu, 07 Jun 2001, Jim Freeze wrote: teo>=20 teo> > > On Thu, 07 Jun 2001 15:06:47 +1000, BSD Freak said: teo> > > teo> > > :: Hi all teo> > > :: teo> > > :: Does anyone know if it possible to run Apache with different p= orts for teo> > > :: secure HTTP and ordinary HTTP. For example I want to run my we= b server teo> > > :: as follows: teo> > > :: teo> > > :: port 443 (HTTPS) directed to document root /var/www-secure teo> > > :: port 80 (HTTP) directed to document root /var/www teo> >=20 teo> > I don't think this can be done through the config file directly. teo> > You probably will have to resort to mod_rewrite. teo> > With rewrite you can essentially map any url to any other url. teo> >=20 teo> yes, it is possible. teo>=20 teo> for 443 (secure) you have a default virtual host, see the added config teo> stuff done by mod_ssl. You can configure a different documentRoot. teo> same goes with 80 (http), which defaults to your documentRoot setting. teo>=20 teo>=20 teo> give some more detail of what you want to achive. How does one start/run TWO binaries of the same app like apache? I am interested in knowing HOWTO do that, especially stsrting them from rc.d/ TIA -Wash -- Odhiambo Washington Wananchi Online Ltd., wash@wananchi.com 1st Flr Loita Hse. Tel: 254 2 313985 Loita Street., Fax: 254 2 313922 PO Box 10286,00100-NAIROBI,KE. Earth is a beta site.=20 --WhfpMioaduB5tiZL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7IJlcn7LIsuxjem8RAh66AJ414rBKqnGN1/taySEPfEGiuLvCQQCfWjMZ AfM9wijQ+mAc897f97F7U/E= =1edJ -----END PGP SIGNATURE----- --WhfpMioaduB5tiZL-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message