Apr 21st, 2009, 02:55 AM
Webflow 2.0 and reverse proxy
We have the following infrastructure:
- a webserver doing https encryption and working as a reverse proxy (Url https://oursite.com)
- a http webserver for our websphere plugin for high availability
All the generated WebFlow Urls are using the http://oursite.com prefix, because of the request ist coming from the http webserver to the appserver!
Is is possible to configure Webflow or Spring MVC to produce https urls?
Is there a way to configure the reverse proxy correctly?
Is this scenario working at all?
Apr 21st, 2009, 06:09 AM
So you've got reverse proxy->IHS->WAS?
If so, are you able to configure the reverse proxy to talk with IHS via HTTPS then you won't have any issues (as it will then be HTTPS). The only other way I can think of would be if the reverse proxy had some kind of rewriting capability (i.e. it could rewrite links etc. from http->https in the returned HTML).
Apr 22nd, 2009, 01:09 AM
I've got an Apache box doing SSL, and using mod_jk2 to hook up to a JBoss server.
The JBoss server knows nothing about SSL.
Can you use mod_jk2 or similar? (depending on Apache 2 or 2.2)
Apr 22nd, 2009, 05:27 AM
No, we have to use the IBM Websphere Plugin.
Originally Posted by gmatthews
Do you use some kind of rewriting for the returned URL?
Apr 22nd, 2009, 05:25 PM
>>No, we have to use the IBM Websphere Plugin.
>>Do you use some kind of rewriting for the returned URL?
Nope. Using the mod_jk2 approach in Apache 2.0, Apache talks to JBoss (Tomcat) using the ajp (Apache to Java) protocol, so HTTP isn't involved at that stage.
Not sure if you need something like this http://snipplr.com/view/7912/apache-...configuration/
See lines 8 and 9.
Other than that, maybe post on the Apache and/or IBM forums. It's not really a Spring question.
Apr 8th, 2012, 09:54 AM
I had the SAME problem
So i substituted HTTP proxying
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/
And.. the problem has gone!