Tomcat serving URLs wrong with mod_proxy and apache -
i've set host apache serve static pages , use tomcat serve web application (see this question). static pages server from
and dynamic (tomcat) pages server from
the mod_proxy makes sure "http://myhost.com/myapp" forwarded tomcat server running on "http://myhost.com:8080".
the problem standard tomcat introduction page on "http://myhost.com/myapp" if click on local link (e.g. 'status') on left, generates url "http://myhost.com/manager/status" while should generate: "http://myhost.com/myapp/manager/status"
(the same true webapps installed under tomcat)
what should changed in configuration (apache, tomcat?) redirect tomcat links right place?
have set proxypassreverse
setting in httpd.conf. overwrite http header you'll correct request on side of tomcat.
Comments
Post a Comment