0

I'm trying to configure apache as reverse prxy in front of JAVA jetty web server

Jetty runnig on local netwok on http://172.16.247.65:8091/gaapa/ my config

<VirtualHost *:80> ServerName beta.garantovanaplatba.cz ProxyPreserveHost On ProxyHTMLLogVerbose On LogLevel Info ServerAdmin [email protected] ServerAlias beta.gaapa.cz ProxyPass / http://172.16.247.65:8091/gaapa/ ProxyPassReverse / http://172.16.247.65:8091/gaapa/ #ProxyHTMLEnable On #ProxyHTMLInterp On ProxyHTMLInterp On ProxyHTMLURLMap /gaapa/ / RequestHeader unset Accept-Encoding ErrorLog /var/log/apache2/gaapa-beta-error_log CustomLog /var/log/apache2/gaapa-beta-access_log combined SetOutputFilter proxy-html 

It's just that ProxyPassReverse aint working - I have one page redirecting after commiting POST - direct acces results in

302 FOUND with LOCATION http://172.16.247.65:8091/gaapa/action/3383380055511613440/show 

while proxy acces results in

302 FOUND with LOCATION http://beta.garantovanaplatba.cz/gaapa/action/3383380055511613440/show 

but there is no context path gaapa on proxy server (it resilts into /gaapa/gaapa/ access via proxy) - why the heck this doesn't work?

1
  • Some times the application generates the URLs at the / itself and it may not be possible to proxy / of web application.I am not sure if you have this situation what you can do is install http_live addon in firefox and then send requests from an internet connection different than your network and observe the header response in browser and check as what URLs the application is generating.It will not directly solve your problem but will lead you to a step further. Commented Mar 8, 2011 at 15:30

1 Answer 1

0
ProxyPreserveHost On --> Off 

Jetty is creating redirect based upon this header, so it was beta.garantovanaplatba.cz directly from jetty and ProxyPassReverse couldn't match against it!

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.