Forum OpenACS Q&A: OpenACS 3.2.5 reverse proxy issue..

Collapse
Posted by Chris Bowlby on
Hi All,

I've got an Aolserver/OpenACS 3.2.5 system running that is being proxied to via Apache:

  ProxyPass / http://127.0.0.1:8001
  ProxyPassReverse / http://127.0.0.1:8001

And the proxy'ing through part seems to work fine.

The issue I'm having is that OpenACS is ignoring the reverse proxy and is using it's own URL, not letting apache re-write the URL. I've searched just about everywhere I can think of, the issue also only occurs on 3.2.5 based versions of OpenACS. Version 4.x seems to work fine.
Collapse
Posted by Jonathan Ellis on
sounds like you have ForceHostP set to true in the config file...
Collapse
Posted by Chris Bowlby on
I've already got ForceHostP set to 0 (Which I believe is false :>). I've fiddled with that one setting it to 1 and to 0 and I seem to get the same results...
Collapse
Posted by David Walker on
Does the URL change when you first hit the site? or just when you try to log in or perform certain functions?
Collapse
Posted by Chris Bowlby on
When I goto the site, it will load on the proper URL, but by the time my browser get's a response back from the server it's using the http://site.com:8001 not the http://site.com address that I want.

When I watch the logs, I see the initial hit in the apache system, but then all other connections, including sending out the page to the client occur on the aolserver side and there is not furthur activity on the apache side.
Collapse
Posted by David Walker on
I think for ProxyPassReverse to work properly that the redirect coming back must contain the address mentioned in the ProxyPassReverse line.  Sounds like your server is sending back a redirect containing site.com:8001 instead.

You could try using
"ProxyPassReverse / http://site.com:8001"
instead of the line you are using.