tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mladen Turk" <mt...@mappingsoft.com>
Subject [COMMENT] mod_jk2 reverse mappings
Date Thu, 15 Aug 2002 09:43:50 GMT
Hi,

Some comments regarding reverse uri mappings.

This is the simplest way of accomplishing the reverse mapping (I'm not
sure if this is correct terminology).

There is additional option for the uri map configuration 'reverse' :

[uri:/examples/*.gif]
info=Extension mapping
reverse=1

All the 'normal' mappings are skipped for such a directive, so first we
will map the /examples context. The second call to the mapUri will check
only the 'reverse' flagged uri mappings. If both are mapped then the
DECLINED is returned, meaning that we mapped the context but don't wish
to map the *.gif files in the context.

The drawback is that we are calling the mapUri twice, first for positive
and then for negative mappings.

Of course this could be accomplished in the single call using regular
expressions, with all the drawbacks using pcre.

MT.


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message