>Number: 3639
>Category: mod_jserv
>Synopsis: "Mounting style" gives no ability to map URIs to servlets
>freely (only external redirection works)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: jserv
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Sun Jan 10 13:20:01 PST 1999
>Last-Modified:
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: 1.3.3/mod_jser 1.0b1
>Environment:
Linux, gcc - but this actually doesn't matter
>Description:
I'm trying (all day long) to map URI of the form /x/ to
/servlets/myAliasedClass/
I think that ApJServMount makes it very obfuscated.
I tried:
RewriteRule ^/x/(.*) /servlets/myAliasedClass/
I tried it with [PT] option. But it doesn't work. The url is mapped to the
filesystem. But the /servlets mount point is not in the filesystem itself. So I
get 404.
It works if I remap it using external redirection. But that's not what I like.
In case of CGI/mod-perl/fcgi/you-name-it it's pretty easy to map URI's
internally. But it seems impossible for servlet.
>How-To-Repeat:
>Fix:
1. Some sort of ServletAlias.
2. ApJServAction handler-type /uri/to/servlet
^^^^^^^^^^^
And I mean 'handler' not 'extension'.
(then I would be able to SetHandler for some location).
I call it a bug that mod_jserv is extension based,
not mime or handler-type based.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED. This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request ]
[from a developer. ]
[Reply only with text; DO NOT SEND ATTACHMENTS! ]