httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From /U <>
Subject [users@httpd] Forcing URL Rewrite before Proxy pass
Date Sat, 01 Aug 2009 00:20:57 GMT

Apache: 2.2.0

I need to
   a) require SSL on requests to /secure (i.e., http://server/secure ->
   b) and as the second step, offload (proxy) https://server/secure to

I thought I could accomplish (a) using mod_rewrite and (b) using Proxy pass
as follows:

RewriteEngine On
RewriteLog  "/tmp/http.log"
RewriteLogLevel 9
RewriteCond %{SERVER_PORT}!443$
RewriteRule ^/secure(.*) https://%{HTTP_HOST}:443/secure$1 [R=301,L]

<Proxy balancer://clusterx>
BalancerMember http://localhost:8080/
ProxyPass /secure balancer://clusterx/

However, this does not work. A request http://server/secure is directly
forwarded to

Is there anyway to force Rewrite before proxy pass?

Pl help..



View this message in context:
Sent from the Apache HTTP Server - Users mailing list archive at

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message