Re: Handling parameters
Cyril Bellot <[email protected]>
| Newsgroups | gmane.network.tux |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Nov 19, 2002 at 09:23:47AM +0100, Cyril Bellot wrote:
> On Mon, Nov 18, 2002 at 08:14:00PM +0200, Alex Kramarov wrote:
> > in recent versions of tux ? sign is handled as part of the url, this is why
> > you get 404 error. use a backed apache to catch these. Read the list for
> > related threads. This is not configurable.
>
> If you look at source code, you will see that ? sign breaks the filename
> detection, which was also the case in Tux2+kernel2.4.7...
This is actually not a file extraction problem; this is a design choice
of having a redirect is this particular case...
So, to allow tux to serve files even if parameters are provided, patch
to apply on proto_http.c is the following:
--- proto_http.c.org Wed Nov 20 23:00:08 2002
+++ proto_http.c Wed Nov 20 23:00:44 2002
@@ -1686,10 +1686,6 @@
#endif
default:
- if (req->query_str) {
- req->error = TUX_ERROR_REDIRECT;
- goto error;
- }
}
req->attr = attr;
switch (req->method) {
This is particularly useful for one of our customer on a server
delivering banners which are half picture and half html files called
with arguments (theses args are used by a the client browser through
javascript code, but the servers only gives static data)
--
Cyril Bellot