You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2019/08/26 08:19:59 UTC

[Bug 63696] uriworkermap does not work properly if it has /* pattern

https://bz.apache.org/bugzilla/show_bug.cgi?id=63696

Rainer Jung <ra...@kippdata.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED
                 OS|                            |All

--- Comment #1 from Rainer Jung <ra...@kippdata.de> ---
As far as I remember, the isapi redirector support some kind of virtual hosting
in IIS by first prefixing the URL with the local server name before mapping the
request using uriworkermap.properties. Only if it can't map that URI, it will
next try the raw URI without prefixed vhost.

So the log tells us, that it first tries to map

/localhost:48080/tomcat/test.jsp

and that URI matches the root map, not the tomcat map.

I guess port 48080 is something you configured. If that is stable, you could
try the follwoing rules instead in uriworkermap.properties:

/localhost:48080/tomcat*=tomcat
/localhost:48080/*=root

Any non-root context mapping would not require the vhost prefix in the rules,
because it would never match a /HOST:PORT/ prefixed URI. Only /* unfortunately
matches it.

Alternatively you can stay with your config but add another first rule
(exclusion rule starting with an exclamation mark):

!/localhost:48080/tomcat*=root

You can read a bit about the IIS vhost feature and maps under:

http://tomcat.apache.org/connectors-doc/reference/uriworkermap.html#Virtual_host_integration

Regards,

Rainer

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org