From owner-freebsd-questions Fri May 24 04:53:04 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id EAA20994 for questions-outgoing; Fri, 24 May 1996 04:53:04 -0700 (PDT) Received: from ns.ge.com (ns.ge.com [192.35.39.24]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id EAA20985 for ; Fri, 24 May 1996 04:53:01 -0700 (PDT) Received: from thomas.ge.com ([3.47.28.21]) by ns.ge.com (8.7.5/8.7.3) with ESMTP id HAA08547; Fri, 24 May 1996 07:52:59 -0400 Received: from salem.ge.com (carsdb.salem.ge.com [3.29.7.15]) by thomas.ge.com (8.7.5/8.6.12) with SMTP id HAA03917; Fri, 24 May 1996 07:30:46 -0400 Received: from combs.salem.ge.com by salem.ge.com (4.1/SMI-4.1) id AA07107; Fri, 24 May 96 07:52:46 EDT Received: from localhost (steve@localhost) by combs.salem.ge.com (8.7.5/8.6.11) with SMTP id HAA06445; Fri, 24 May 1996 07:52:45 -0400 (EDT) Date: Fri, 24 May 1996 07:52:27 -0400 (EDT) From: "Stephen F. Combs" Reply-To: CombsSF@salem.ge.com To: Jim Dennis Cc: FreeBSD Questions Subject: Re: How do I redirect *all* http traffic from one host to another In-Reply-To: <199605232134.OAA13155@mistery.mcafee.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk -----BEGIN PGP SIGNED MESSAGE----- IF you are using the CERN server you should be able to include the following line in your config file and have it redirect ALL traffic to the other server. Redirect http:///* http://www.mcafee.com/* I do that here quite often while moving a web server to a new machine/address. - ---- Stephen F. Combs Internet: CombsSF@Salem.GE.COM GE DS&TC Voice: 540.387.8828 Network Services Home: CombsSF-Home@Salem.GE.COM 1501 Roanoke Blvd FAX: 540.387.7106 Salem, VA 24153 LapTop: CombsSF-Mobile@Salem.GE.COM On Thu, 23 May 1996, Jim Dennis wrote: > Date: Thu, 23 May 1996 14:34:40 -0700 (PDT) > From: Jim Dennis > To: FreeBSD Questions > Subject: How do I redirect *all* http traffic from one host to another > > > > Well the old Sun4 is dying (got some parity errors and > died this morning -- cleaning the SIMMS contacts has > brought it up for now -- but ...) > > So my boss is finally following my advice and letting me > configure a PC with FreeBSD to take over that role > (as the primary DNS server, and mailhost for our domain). > > While I'm at it I'd like to a webserver on that box to > redirect any HTTP traffic to our main web server (www.mcafee.com) > (basically to gracefully redirect anyone who requests: > http://mcafee.com). I know how to use a CGI-bin to do a > redirection (just 'echo "Location: http://www.mcafee.com"; echo') > But how can I do that with my main index.html file? > > Can I do this with some tag or with X-bit hack > and a