[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: Tux and HTTP 302



> From: "Nuno Ferreira" <nuno.ferreira@globalti.pt>
> To: <tux-list@redhat.com>
> Subject: Tux and HTTP 302
> Date: Thu, 20 Jun 2002 12:16:00 +0100
> Organization: Global TI, Lda
> Reply-To: tux-list@redhat.com

> I need to be able generate a HTTP 302 Found (redirection) from TUX.
> Does anyone know how to do this? 
> Do I need to write a TUX module?

Nuno,

TUX modules are extension-triggered (.x and .tux by default; see
/etc/tux.mime.types).  So while it would be trivial to create a dynamic
module that set HTTP status 302 and the Location: header, it could only be
triggered by a GET to that extension, i.e. http://server/redirect.tux (which
I doubt is what you want).

My suggestion: set up Apache on port 8080 as a backend server (see the TUX
docs for more info on how to do this) and use mod_alias.  When TUX can't
find the file, it will transparently pass the connection to Apache.

David





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []