Re: pretty faces 3.3.2 tomcat 7 configuration problem

Splash Forums PrettyFaces Users pretty faces 3.3.2 tomcat 7 configuration problem Re: pretty faces 3.3.2 tomcat 7 configuration problem

#21862

I’m not an expert for configuring mod_proxy, so I’m only guessing here. But it seems like the ProxyPassReverse configuration isn’t working like expected.

I’ve one idea what’s going wrong here. PrettyFaces send redirects like this:

Location: /app2/some-file

And NOT something like this:

Location: http://localhost:8080/app2/some-file

So perhaps you could try this one:

ProxyPass / http://localhost:8080/app2/
ProxyPassReverse / /app2/

Or, as PrettyFaces doesn’t touch the host part of the URL, this could also work:

ProxyPass / http://localhost:8080/app2/
ProxyPassReverse / http://app2.example.com/app2/

If that doesn’t work, you should use Firebug or some other development tool to have a look at the Location header and modify the ProxyPassReverse option accordingly.

See also:

http://www.humboldt.co.uk/2009/02/the-mystery-of-proxypassreverse.html