httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axel-Stéphane SMORGRAV <>
Subject RE: [users@httpd] mod_proxy and Redirect
Date Thu, 10 Mar 2005 08:42:14 GMT
Sorry. Let me rephrase that.

Have you tried to reverse the order of the LoadModule directives for the ALIAS and PROXY modules
in your configuration?

The order in which the modules are loaded is significant for the order in which directives
from different modules are executed. If I am not mistaken the modules are stacked so the first
module loaded will be the last to execute. You should therefore make sure that the alias module
is loaded after the proxy module.

The redirect directive is implemented by the Alias module - not by the rewrite module as far
as I can see from the Apache manual.

Another thing you may try is to use a rewrite rule instead of the Redirect directive, provided
mod_rewrite is loaded.

RewriteRule ^/foobar(.*)$ http://a.b.c/foobar$1 [R]
is equivalent to
Redirect /foobar http://a.b.c/foobar


-----Message d'origine-----
De : Axel-Stéphane SMORGRAV [] 
Envoyé : jeudi 10 mars 2005 09:12
À :
Objet : RE: [users@httpd] mod_proxy and Redirect

Have you tried to reverse the order of the LoadModule directives for the rewrite and proxy
modules in your configuration? Are these statically or dynamically linked?


-----Message d'origine-----
De : K Anand [] Envoyé : jeudi 10 mars 2005 05:18 À :
Objet : Re: [users@httpd] mod_proxy and Redirect


1) I checked my httpd.conf file. The rewrite module is being loaded before the proxy module.
2) I do need to do the reverse proxy . So I cannot negate that.

Here's my scenario in detail.

client      ---      Webserver      -----       Appln server
             https                            http

Webserver to Appln server connections are made by ProxyPass. Since this is application is
used for all transactions of our company and it can be deployed on the internet, we are planning
to use SSL between client and Webserver. So all requests between client and Webserver will
be on https. What I want is that
when the URL is say   it should be rewritten to In addition
to this, there is a ProxyPass on Webserver which is like this :
ProxyPass /docs/

When I'm disabling the ProxyPass statement in my httpd.conf, I can see that URL is being rewritten
from https to http. But the moment I uncomment the ProxyPass statement, URL is not being rewritten.

Any clues why ??


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