From owner-freebsd-questions Thu May 23 14:19:57 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id OAA20589 for questions-outgoing; Thu, 23 May 1996 14:19:57 -0700 (PDT) Received: from mistery.mcafee.com (jimd@mistery.mcafee.com [192.187.128.69]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id OAA20581 for ; Thu, 23 May 1996 14:19:52 -0700 (PDT) Received: (from jimd@localhost) by mistery.mcafee.com (8.6.11/8.6.9) id OAA13155 for freebsd-questions@freebsd.org; Thu, 23 May 1996 14:34:41 -0700 From: Jim Dennis Message-Id: <199605232134.OAA13155@mistery.mcafee.com> Subject: How do I redirect *all* http traffic from one host to another To: freebsd-questions@freebsd.org (FreeBSD Questions) Date: Thu, 23 May 1996 14:34:40 -0700 (PDT) X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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