RE: Tux and HTTP 302

[email protected]
Newsgroups gmane.network.tux
Message-ID <B802F5F25EAD9B43A2D3A7A3368535321E2B67@AUSXMPC117.aus.amer.dell.com>
> From: "Nuno Ferreira" <[email protected]>
> To: <[email protected]>
> Subject: Tux and HTTP 302
> Date: Thu, 20 Jun 2002 12:16:00 +0100
> Organization: Global TI, Lda
> Reply-To: [email protected]

> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.