> First, you must have the mod_rewrite module, and the JServ module must come
> *before* mod_rewrite in the AddModule list. In other words:
>
> AddModule mod_jserv.c
> AddModule mod_rewrite.c
>
> Then, you set up rewrite rules like this:
>
> RewriteEngine on
> RewriteRule ^/mantix/mxbooker$ /servlets/com.mx.webtime.servlets.MxBooker [PT]
> RewriteRule ^/mantix/mxclerk$ /servlets/com.mx.webtime.servlets.MxClerk [PT]
>
> Result:
>
> URL /mantix/mxbooker runs servlet com.mx.webtime.servlets.MxBooker
> URL /mantix/mxclerk runs servlet com.mx.webtime.servlets.MxClerk
>
> The key is using the [PT] flag (passthrough) with mod_rewrite, or else the
> URLs will try to refer to files, which of course don't exist.
It's not working for us :(
When I request the URL: /aeonservl/MallHome
If the order is:
----------------
AddModule mod_jserv.c
AddModule mod_rewrite.c
the error message is:
[Fri Apr 30 11:58:13 1999] [error] [client 195.143.158.4] object is not a file,
directory or symlink: /aeonservl/MallHome
If the order is:
----------------
AddModule mod_rewrite.c
AddModule mod_jserv.c
I have this messages:
20: MallHome: Ready to answer requests
20: MallHome: Checking file /usr/local/apache/htdocs/home.htm
20: MallHome: opening file /usr/local/apache/htdocs/home.htm
10000: Advert Server Missing
10000: Advert Server Missing
20: MallParser: Starting environment in ApacheJServ/1.0b3
10000: AEON Tr@de framework AEON_Trade already initialized
10: Module TradeEnvironment already loaded as class
aeon.trade.output.http.TradeEnvironment
20: Init parameters:
10: MallParser: Ready to answer requests
10000: MallParser: Can't find file /usr/local/apache/htdocs/aeonservl/body.mall
[Fri Apr 30 12:05:40 1999] [error] [client 195.143.158.4] File does not exist:
/usr/local/apache/htdocs/gif/jpc.gif
and in the window's frames:
The requested URL /aeonservl/aeon.trade.output.http.MallParser was not found on
this server.
The requested URL /aeonservl/info.htm was not found on this server.
First of all I have to understand why he is looking for:
/usr/local/apache/htdocs/aeonservl/body.mall
instead of
/usr/local/apache/htdocs/body.mall
--------------------
My current config is:
RewriteRule ^/delicates/? /aeonservl/MallHome/ [PT]
RewriteRule ^/Gesundheitslaedchen/? /aeonservl/MallHome/ [PT]
RewriteRule ^/home_htm.htm /aeonservl/MallHome/ [PT]
RewriteRule ^/jpc/? /aeonservl/MallHome/ [PT]
RewriteRule ^/MallParser(.*) /aeonservl/MallParser$1 [PT]
RewriteRule ^/Schitag/? /aeonservl/MallHome/ [PT]
RewriteRule ^/servlets/? /aeonservl/ARCServer/ [PT]
RewriteRule ^/index.shtml /aeonservl/MallHome/ [PT]
RewriteRule ^/hello/?(.*) /aeonservl/Hello/ [PT]
and:
# Syntax: ApJServAction [extension] [servlet-uri]
ApJServAction .mall /aeonservl/aeon.trade.output.http.MallParser
just thinking...
--
_____________
____________________________/ \
|
Andrea Caltroni Software Engineer |
AEON Virtual Shopping Services GmbH |
Zettachring 6, 70567 Stuttgart, Germany |
email: [EMAIL PROTECTED] |
Office phone: +49-711-7287-4432 |
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]