[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
How to specify a particular user module to handle a specific httprequest?
- From: Liang Yang <Liang Yang asu edu>
- To: tux-list redhat com
- Subject: How to specify a particular user module to handle a specific httprequest?
- Date: Mon, 18 Mar 2002 11:51:35 -0700
Hi,
If I want to use my user module to handle some specific http request
(for example, requests for big graphic file), I know I need to add MIME type
in /etc/tux.mime.types(add a line such as "image/jpeg jpg jpeg jpe"),
but I don't know how to specify a particular module to handle this kind of
request if I loaded multiple user modules at the same time.Suppose I loaded
demo.tux, demo2.tux,demo3.tux when starting TUX, but I only want demo.tux
to hanlde graphic file request, I don't want other user modules to be
involved.
How can I do it?
/etc/tux.mime.types doesn't contain the corresponding parameter to specify
a particular user module to hadle a particular mime type files, the
reference
manual just says "all extensions listed after TUX/module will be handled by
TUX userspace modules".
BTW, I can use http://localhost/demo.tux to invoke my user module demo.tux,
but if I specify
only demo.tux to handle http request about .jpg file, should the URL
http://localhost/sample.jpg
work and also result in "hello webworld" in the screen just like
http://localhost/demo.tux ?
Sometimes I feel I really need help from TUX experts since I can hardly find
any useful documents
about TUX in Internet :-)
Liang
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]