apache as reverse proxy to tomcat -



apache as reverse proxy to tomcat -

i have apache configured reverse proxy tomcat:

proxypass /demo/ ajp://demoserver.local:8009/demo/ proxypassreverse /demo/ ajp://demoserver.local:8009/demo/

works great. cant come in http://webserver.local/demo/ , tomcat app's page.

i need create alter in url: http://webserver.local/demo123/. changed configuration of proxy way:

proxypass /demo123/ ajp://demoserver.local:8009/demo/ proxypassreverse /demo123/ ajp://demoserver.local:8009/demo/

i can't working though. happens tomcat app sends redirect /demo/login.htm , web browser tries fetch url web server. web server fires 404 error since /demo/ not pointing anywhere.

could perchance solve without touching tomcat's app, modifying apache config?

apache tomcat proxy ajp

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -