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

"http://myhost.com"

and dynamic (tomcat) pages server from

"http://myhost.com/myapp"

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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -