reverse proxy problems with JSPWiki

reverse proxy problems with JSPWiki

am 09.08.2007 14:58:26 von mothra

I have a reverse proxy setting in Apache (ssl.conf) that points to a
Tomcat server running JSPWiki (on port 8080).

If I access the initial Login.jsp page, and get past the authentication,
then everything works fine; however, if I try and access any areas of the
site directly before authenticating, instead of sending me to the
Login.jsp page via the frontend URL, it tries to access that page using
the backend server's IP address... example:

--- Connect to Login.jsp directly ----

user@laptop:~$ wget https://mysite.net/wiki/Login.jsp --13:50:44--
https://mysite.net/wiki/Login.jsp
=> `Login.jsp.2'
Resolving mysite.net... 195.92.111.x
Connecting to mysite.net|195.92.111.x|:443... connected. HTTP request
sent, awaiting response... 200 OK Length: unspecified [text/html]

[ <=>
] 8,617 --.--K/s

13:50:47 (221.34 KB/s) - `Login.jsp' saved [8617]


--- Connect to some other link first ---

user@laptop:~$
wget https://mysite.net/wiki/Wiki.jsp?page=mydoc --13:52:49--
https://mysite.net/wiki/Wiki.jsp?page=mydoc
=> `Wiki.jsp?page=mydoc'
Resolving mysite.net... 195.92.111.x Connecting to
rockshore.net|195.92.111.x|:443... connected. HTTP request sent, awaiting
response... 302 Moved Temporarily Location:
http://10.1.1.28:8080/wiki/Login.jsp?redirect=mydoc [following]
--13:52:49--
http://10.1.1.28:8080/wiki/Login.jsp?redirect=mydoc
=> `Login.jsp?redirect=mydoc'
Connecting to 10.1.1.28:8080...


What is happening here and how can I remedy it?

Thanks,

Mothra.

Re: reverse proxy problems with JSPWiki

am 09.08.2007 15:15:58 von phantom

"Mothra" wrote in message
news:SbEui.14936$G83.12149@newsfet01.ams...
>I have a reverse proxy setting in Apache (ssl.conf) that points to a
> Tomcat server running JSPWiki (on port 8080).
>
> If I access the initial Login.jsp page, and get past the authentication,
> then everything works fine; however, if I try and access any areas of the
> site directly before authenticating, instead of sending me to the
> Login.jsp page via the frontend URL, it tries to access that page using
> the backend server's IP address... example:
>

Are you using ProxyPassReverse as well as ProxyPass ?