Re: redirect within module?

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

 



On 12/11/13, 9:26 AM, Eric Covener wrote:
> If you can run in translate_name, just do what mod_alias does.
> If you have to run as a handler, maybe look at how mod_rewrite does
> its internal redirect.

I would stay away from duplicating what mod_rewrite does in translate_name for
internal redirects (aka PT or PassThrough).

See my email on the dev@ list with respect to mod_dav_svn and mod_rewrite for
an example of the problems here.  The current behavior of mod_rewrite assumes
that the core hook always updates the r->uri to the r->filename, but if some
other module needs to prevent the core hook from running and can be configured
per directory this creates a conflict between the two modules and you can use
one or the other but not both.  In the case of mod_rewrite and mod_dav_svn, it
means you can't use the PT flag to redirect out of a path that mod_dav_svn
thinks it is serving.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-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