RE: [users@httpd] mod_proxy and Redirect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-ascs

-----Message d'origine-----
De : Axel-Stéphane SMORGRAV [mailto:Axel-Stephane.SMORGRAV@xxxxxxxxxxxxxx] 
Envoyé : jeudi 10 mars 2005 09:12
À : users@xxxxxxxxxxxxxxxx
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?

-ascs

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

Josh,

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 https://abc.com/docs/xyz   it should be rewritten to
http://abc.com/docs/xyz. In addition
to this, there is a ProxyPass on Webserver which is like this :
ProxyPass /docs/ http://abc1.com/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 ??

Anand


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux