Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jun 2001 21:05:38 +0300
From:      teo@gecadsoftware.com
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Different document roots for secure HTTP and HTTP
Message-ID:  <20010607210538.A6275@gecadsoftware.com>
In-Reply-To: <Pine.BSF.4.32.0106070840510.44838-100000@www.stelesys.com>; from jim@freeze.org on Thu, Jun 07, 2001 at 08:44:31AM -0400
References:  <200106070516.f575Fxh08890@xyzzy.intranet.snsonline.net> <Pine.BSF.4.32.0106070840510.44838-100000@www.stelesys.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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