httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Reser <>
Subject Re: [users@httpd] redirect within module?
Date Mon, 23 Dec 2013 05:18:41 GMT
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:
For additional commands, e-mail:

View raw message