for local lunch we use proxy on js: proxy: {'/api/': { target:
'http://localhost:8080/', changeOrigin: false, },'/': { target:
'http://localhost:8080/lundase', changeOrigin: false } }, for normal lunch we
use apache2.conf: RewriteCond %{REQUEST_URI}
^(/api/|/mapi/|/binary/|/rpc/invoker/) RewriteRule ^/rpc/invoker/(.*)$
http://localhost:9090/rpc/invoker/$1 [NC,P,L]
RewriteRule ^/api/(.*)$
http://localhost:9090/api/$1 [NC,P,L] RewriteRule ^/mapi/(.*)$
http://localhost:9090/mapi/$1 [NC,P,L] #RewriteRule
^/lundase/(.*)$ http://localhost:9090/lundase/$1
[NC,P,L] #RewriteRule ^/binary/(.*)$
http://localhost:9090/lundase/binary/$1 [NC,P,L] #RewriteRule
^/content/(.*)$
http://localhost:9090/lundase/content/$1 [NC,P,L] #RewriteRule ^.*/[^./]+$
$0/ [NC,R=301,L] RewriteRule ^(.*)$
http://localhost:9090/lundase/$1 [NC,P,L]
20.12.2022, 15:11, Mark Thomas < mailto:ma...@apache.org ma...@apache.org >
You'll need to provide: - The httpd proxy configuration - the context path -
the servlet mapping(s) - the code that generates the problematic link - the URL
of the request that triggers the problem Mark On 20/12/2022 07:37, alik alikov
wrote: > Hello I have some problems with trailing slashes. > When I try to get
to the page for example: "about/page" tomcat understands that it is necessary
to add a slash and adds it, however, he also adds the name of the root folder
to this, that is, the url "lundase/about/page/" turns out, and any requests to
our server via apache are proxied with the addition of "lundase", so it turns
out that we are accessing the application on request
"lundase/lundase/about/page/" which results in a 404 status. > I googled it and
found two properties: > context.setMapperContextRootRedirectEnabled(false)
context.setMapperDirectoryRedirectEnabled(false) > And tryed to play with them,
however, it's not resolve my problem please can you help me with it? > . >
--------------------------------------------------------------------- To
unsubscribe, e-mail: /compose/ users-unsubscr...@tomcat.apache.org For
additional commands, e-mail: /compose/ users-h...@tomcat.apache.org