Re: [users@httpd] mod_proxy and Redirect

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

 



>From: "Axel-Stéphane SMORGRAV" <Axel-Stephane.SMORGRAV@xxxxxxxxxxxxxx>
>

>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

I was actually using rewrute only..mod_proxy is loaded before
mod_rewrite...still not working
then I changed the rewrite to Redirect ..mod_alias is loaded after
mod_proxy...still not working.

Now I have changed the AddModule order also and NOW it is finally doing what
it is supposed to do...
Thanx a lot.

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