Re: mod_rewrite: LoadModule order is important?

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

 




On Sep 4, 2007, at 1:15 PM, Joshua Slive wrote:

On 9/4/07, Rainer Traut <tr.ml@xxxxxx> wrote:
Hi,

am running Redhat EL4 U5 with redhat's Apache/2.0.52.

I noticed the order of loading the modules is important?

Part of httpd.conf:

LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

If I load the rewrite modul after the proxy modules I lose the
rewriteengine function in my SSL virtual host. It uses the mod_proxy
module there.

Is this possible? Maybe a bug?

Could be. LoadModule order isn't supposed to have an effect in 2.x.
But you are using an ancient version. You should try with something
more modern before reporting a bug.


Yep... but also recall that most modules use APR_HOOK_MIDDLE as
the ordering, and so the order of when the hooks actually
get run does depend on when the modules are loaded in and
when they call the ap_hook_* func. And unlike 1.3, 2.x
is such that the 1st modules loaded are also run 1st
unless the sort changes that (export SHOW_HOOKS and
then run Apache to see what happens)...

(mostly an issue with AAA routines where the fall-through
matters)


---------------------------------------------------------------------
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