From owner-freebsd-questions@FreeBSD.ORG Tue Oct 12 23:57:29 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D20B916A4CE for ; Tue, 12 Oct 2004 23:57:29 +0000 (GMT) Received: from indian.dokfilm.org (indian.dokfilm.org [217.197.85.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 297EF43D46 for ; Tue, 12 Oct 2004 23:57:29 +0000 (GMT) (envelope-from bsd@dokfilm.org) Received: from yakima.indian.dokfilm.org ([192.168.2.2] helo=mohawk) by indian.dokfilm.org with esmtp (Exim 4.20) id 1CHWXl-000Gyx-7X for freebsd-questions@freebsd.org; Wed, 13 Oct 2004 01:59:01 +0200 From: "Lars H. Beuse" Organization: x-scope.de To: freebsd-questions@freebsd.org Date: Wed, 13 Oct 2004 01:58:03 +0200 User-Agent: KMail/1.6.2 References: <200410120127.42002.bsd@dokfilm.org> <200410121827.i9CIRJ3m010356@lv.raad.tartu.ee> <9395922d04101212532d1019e9@mail.gmail.com> In-Reply-To: <9395922d04101212532d1019e9@mail.gmail.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200410130158.03232.bsd@dokfilm.org> Subject: Re: NameVirtualHost nat X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Oct 2004 23:57:29 -0000 On Tuesday 12 October 2004 21:53, David Jenkins wrote: > On Tue, 12 Oct 2004 21:26:55 +0300, Toomas Aas wrote: > > Hi! > > > > "Lars H. Beuse" wrote: > > > i want some apache NameVirtualHost behind a Paketfilter based on ipf, > > > placed in two subnets. This router has two Cards one in the private > > > net, one in the public. So far i just forward port 80 and 443 into my > > > private net 192.168.2.0, but every request ends up on apaches > > > rootlevel, NameVirtualHost directive is useless. So, how to forward > > > http(s):// requests through the Paketfilter matching the right > > > VirtualHost? Maybe i've thought in a wrong direction, so far. Just some > > > little hints should be enough. > > > > I can't be 100% sure because I haven't done this kind of thing myself, > > but I don't see why port forwarding should interfere with Apache's > > name-based virtual hosting. After all, they operate on different layers > > of the OSI model: port forwarding is purely TCP business while > > VirtualHosts are HTTP. [...] Jepp, that's why i'am a bit confused. Cause unfiltered ApacheVirtualHosts i run a few. So i think i solved that issue: That was my Virtual Host Container before it works: NameVirtualHost www.domain.org:80 blablabla The Container that works: NameVirtualHost 192.168.2.5:80 blablabla Thanx, for youre reply. But why is that? I'm not really shure. So i will go deeper in that. Ciao Lars