Re: [us...@httpd] Forcing URL Rewrite before Proxy pass

2009-08-01 Thread André Warnier
/U wrote: Thanks Andre and Jorge. I combined your suggestions to arrive at the following: ProxyRequests Off BalancerMember http://server:8080/ Redirect /securehttps://server/secure ProxyPass /secure balancer://clu

Re: [us...@httpd] Forcing URL Rewrite before Proxy pass

2009-08-01 Thread /U
Thanks Andre and Jorge. I combined your suggestions to arrive at the following: ProxyRequests Off BalancerMember http://server:8080/ Redirect /securehttps://server/secure ProxyPass /secure balancer://clusterx/

Re: [us...@httpd] Forcing URL Rewrite before Proxy pass

2009-08-01 Thread Jorge Schrauwen
If you want to go SSL here is an easier way to check for SSL RewriteEngine On RewriteCond %{HTTPS} !=on [NC] RewriteRule ^/secure(.*) https://%{SERVER_NAME}/secure$1 [R,L] You way also want to look at the P flag to proxy the request. http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritefl

Re: [us...@httpd] Forcing URL Rewrite before Proxy pass

2009-08-01 Thread André Warnier
/U wrote: Apache: 2.2.0 I need to a) require SSL on requests to /secure (i.e., http://server/secure -> https://server/secure) b) and as the second step, offload (proxy) https://server/secure to http://server:8080/secure I don't know the details, but the following may work : You may need

Re: [us...@httpd] Forcing URL Rewrite before Proxy pass

2009-07-31 Thread /U
Thanks for the note. When I use the P flag with the RewriteRule, ProxyPass fails, since I do not have an SSLProxy. What I have is this: (Apache web server) <-> Tomcat servlet container What I need is to: - require all requests for ^/secure/... to be made thru https - termin

Re: [us...@httpd] Forcing URL Rewrite before Proxy pass

2009-07-31 Thread Eric Covener
On Fri, Jul 31, 2009 at 8:20 PM, /U wrote: > > Apache: 2.2.0 > > I need to >   a) require SSL on requests to /secure (i.e., http://server/secure -> > https://server/secure) >   b) and as the second step, offload (proxy) https://server/secure to > http://server:8080/secure > > I thought I could acco

[us...@httpd] Forcing URL Rewrite before Proxy pass

2009-07-31 Thread /U
Apache: 2.2.0 I need to a) require SSL on requests to /secure (i.e., http://server/secure -> https://server/secure) b) and as the second step, offload (proxy) https://server/secure to http://server:8080/secure I thought I could accomplish (a) using mod_rewrite and (b) using Proxy pass as f