Welcome! Log In Create A New Profile

Advanced

Nginx with tomcat (nginx_ajp_module) different webapps

Posted by cddm 
Nginx with tomcat (nginx_ajp_module) different webapps
March 31, 2014 05:26AM
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
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 307
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready