Welcome! Log In Create A New Profile

Advanced

Re: Reverse proxy to a tomcat service (folder name)

May 27, 2011 12:34PM
On Fri, May 27, 2011 at 12:26:47PM -0400, kheraud wrote:
> Thank you for the hint,
>
> It seems to work (for the first page) but in fact it leads to some
> errors... You added "/" to "proxy_pass http://localhost:8080/myapp". But
> I ommitted it after having seen that it leads to the following mistakes
> on the tomcat side :
>
> The requested resource (/dev01-portal//j_spring_security_check) is not
> available.
>
> The access log is :
> [27/May/2011:18:23:32 +0200] "POST /dev01-portal/j_spring_security_check
> HTTP/1.1" 404 441 "http://dev01-portal.appssalon.com/" "Mozilla/5.0
>
> I don't know why but it seems it requests
> http://localhost:8080/dev01-portal//j_spring_security_check.
>
> Do you know where it comes from ?

It seems you have two locations:

location / {
location /dev01-portal {

You need just one:

location / {


--
Igor Sysoev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Reverse proxy to a tomcat service (folder name)

kheraud May 27, 2011 10:59AM

Re: Reverse proxy to a tomcat service (folder name)

Igor Sysoev May 27, 2011 11:12AM

Re: Reverse proxy to a tomcat service (folder name)

kheraud May 27, 2011 12:26PM

Re: Reverse proxy to a tomcat service (folder name)

Igor Sysoev May 27, 2011 12:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready