[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    Re: [users@httpd] redirect within module?
From:       Ben Reser <ben () reser ! org>
Date:       2013-12-23 5:18:41
Message-ID: 52B7C7B1.9000300 () reser ! org
[Download RAW message or body]

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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic