Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Nginx with tomcat (nginx_ajp_module) different webapps

$
0
0
Hello there ;),

I'm currently trying to switch from "apache <-> tomcat" to "nginx <-> tomcat" with nginx_ajp_module,
this works, but not like intended

APACHE2.conf:
-------------------------------

ProxyPass / ajp://10.0.0.49:8009/myAPP

-------------------------------

NGINX.conf:
-------------------------------
location / {
ajp_pass 10.0.0.49:8009/myAPP
}
------------------------------

Apache is forwarding "ajp://10.0.0.49:8009/myAPP" to "http://127.0.0.1/" like expected, but Nginx is forwarding "ajp://10.0.0.49:8009/" to "http://127.0.0.1/" and "ajp://10.0.0.49:8009/myAPP" to "http://127.0.0.1/myAPP".

So does anybody knows how i can make nginx forwarding an specific tomcat app "/myAPP" to the nginx "root" (/)?

Thanks for your help, :)

cddm

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>