Date: Fri, 24 May 1996 07:52:27 -0400 (EDT) From: "Stephen F. Combs" <combssf@salem.ge.com> To: Jim Dennis <jimd@mistery.mcafee.com> Cc: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: How do I redirect *all* http traffic from one host to another Message-ID: <Pine.SUN.3.93.960524074932.472B-100000@combs.salem.ge.com> In-Reply-To: <199605232134.OAA13155@mistery.mcafee.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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://<your.server.name.here>/* 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 <jimd@mistery.mcafee.com> > To: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> > 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 <META ...> tag or with X-bit hack > and a <!--#Exec > (server-side include)? > > I'll have some other questions on this -- I'm sure. > > > -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBMaWjAennD7stD95BAQHuaQP8CtZU+m2XWfNM/bRBwk2We2gv8j0vP3BG nmMyGnpcmTE82oIx6pCmDp+oaiWsnucHgrpbzuG0OZ4tB4I/ibDpZ6qd4WrJrxRL gYE/GGSibTkTigGbLLlduehLL8zWVFl3/qUypWr4lSVl0vQtQ2L0OazMQxUL2PZ+ N8KUPxwPPC8= =Qxm3 -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.93.960524074932.472B-100000>