开发者

Pass Requests to the right Application

开发者 https://www.devze.com 2023-02-10 16:17 出处:网络
I\'ve got a problem with using nginx in front of Tomcat 7. I want to proxy requests for a domain sub.domain.tld/.jsp to http://127.0.0.1:8080/m开发者_如何学JAVAyapplication/.jsp, but I can\'t manage t

I've got a problem with using nginx in front of Tomcat 7. I want to proxy requests for a domain sub.domain.tld/.jsp to http://127.0.0.1:8080/m开发者_如何学JAVAyapplication/.jsp, but I can't manage to get it right.

I need to use sub.domain.tld/myapp/*.jsp in order to get the file showing, how is it possible to implement this redirection?

My current config is the one from the nginx wiki: http://wiki.nginx.org/JavaServers

Best regards, Alex


Why don't u call response.sendRedirect("subdomain/log.jsp");

0

精彩评论

暂无评论...
验证码 换一张
取 消