httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Rectanus" <>
Subject Re: [users@httpd] Switching between HTTP and HTTPS
Date Tue, 20 Jun 2006 14:10:14 GMT
You want anything with 'crypt' in the url to be redirected, but
everything else sent through reverse proxy, correct (although that
does not make much sense)?  The ProxyPass is handled first, so use
RewriteRule w/[P] instead.  Also I am a bit confused on the localhost
below, is that just a placeholder for a real address, or is that what
you want?  A redirect to localhost will try to connect the client to
his/her own machine, not the server.  Did you want it proxied to
localhost instead?

# Probably no need for the second '?', maybe not even the first.
# The '*?' means '0 or more non-greedy' and can be expensive
# Given: foobarbazbar
#  .*?bar would match 'foobar'
#  .*bar would match 'foobarbazbar'
# You need to decide if it matters, but these should be fine:
#RedirectMatch permanent ^/(.*?crypt.*) https://localhost:7334/$1
RedirectMatch permanent ^/(.*crypt.*) https://localhost:7334/$1

<IfModule mod_proxy.c>
 ProxyRequests off
 <Proxy *>
 order deny,allow
 Allow from all
 ProxyBadHeader Ignore
 # Use this instead:
 RewriteRule ^/bas/(.*)$1 [P]
 ProxyPassReverse /bas/

On 6/20/06, Anil Dighade <> wrote:
>  Owen,
> I tried with all the flags [L],[R] and [P] still no success.
> Possible reason could be that "\bas\" is not a apache folder. Its bas.war
> file at another application server (Bea Weblogic). Where my apache's reverse
> proxy is redirecting. See my virtual host proxy setting below.

OK, now I am confused.  You said "Where my apache's reverse proxy is
redirecting", but it is *not* redirecting, it is proxying.  Which do
you want?  Redirecting gets passed back to the user as a HTTP Location
header, whearas proxying happens on behalf of the server.


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