From owner-freebsd-questions Sat Jan 1 8:10:57 2000 Delivered-To: freebsd-questions@freebsd.org Received: from donhm.calcasieu.com (dread.austin.texas.net [206.127.24.91]) by hub.freebsd.org (Postfix) with ESMTP id A46A814F52 for ; Sat, 1 Jan 2000 08:10:53 -0800 (PST) (envelope-from dread@donhm.calcasieu.com) Received: (from dread@localhost) by donhm.calcasieu.com (8.9.3/8.9.3) id KAA06364; Sat, 1 Jan 2000 10:10:44 -0600 (CST) (envelope-from dread) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200001011436.BAA51485@hot.net.au> Date: Sat, 01 Jan 2000 10:10:43 -0600 (CST) From: Don Read To: steve@hot.net.au Subject: RE: Apache / DNS / ? Cc: questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 01-Jan-00 steve@hot.net.au wrote: > Hi All, > > I'm trying to display one page to my users and another page to the outside > world. > > > Something like. > > outside person looks at home page (http://some.domain/) and gets index.html > inside person looks at home page (http://some.domain/) and gets inside.html > 1. server side include (but I've no experience with them) 2. have index.html redirect to a cgi script: ------ #!/bin/sh set -f echo Content-type: text/html echo DOC="go_away.txt" case $REMOTE_ADDR in 192.168.3.* | 192.168.170.* | 192.168.172.* ) DOC="intern.txt";; esac cat $DOC exit 0 ------- Regards, -- Don Read dread@calcasieu.com EDP Manager dread@texas.net Calcasieu Lumber Co. Austin TX -- No Coffee No Peace To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message