You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by Eric Covener <co...@gmail.com> on 2008/11/26 15:30:25 UTC
Fwd: [users@httpd] mod_rewrite subrequests or last rules within
based on questions/problems on #apache, this probably does deserve some emphasis
---------- Forwarded message ----------
From: Peter Kehl <pe...@gmail.com>
Date: Wed, Nov 26, 2008 at 9:10 AM
Subject: Re: [users@httpd] mod_rewrite subrequests or last rules
within <Directory>
To: users@httpd.apache.org
Eric,
thank you.
Now I see it's mentioned at
http://httpd.apache.org/docs/2.0/rewrite/rewrite_tech.html mentions
that 'in per-directory context mod_rewrite first rewrites the
filename... and then initiates a new internal sub-request with the new
URL. This restarts processing of the API phases.'
I originally only read
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html. It says
'Because the per-directory rewriting comes late in the process, the
rewritten request has to be re-injected into the Apache kernel' - but
it's not clear what is actually hapening to the request. Whoever
maintains this web page, please could you append something like 'as if
it were a new request - see
[http://httpd.apache.org/docs/2.0/rewrite/rewrite_tech.html ]' or '
and it checks for any applicable rules again, from all its per-server
or per-directory contexts' (or something more clear).
Thank you
2008/11/26 Eric Covener <co...@gmail.com>:
>> rewriter log says it rewrites to /index.php first (1st rule) and then
>> it rewrites it to /set_cookie.php (2nd rule). I thought [L] and [NS]
>> should stop any further rules. What am I missing?
>
> In per-directory context, any time you make a change the entire cycle
> is restarted -- 'L' only applies to the current pass.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
Re: Fwd: [users@httpd] mod_rewrite subrequests or last rules within
Posted by André Malo <nd...@perlig.de>.
> Now I see it's mentioned at
> http://httpd.apache.org/docs/2.0/rewrite/rewrite_tech.html mentions
> that 'in per-directory context mod_rewrite first rewrites the
> filename... and then initiates a new internal sub-request with the new
> URL. This restarts processing of the API phases.'
By the way it's not a sub-request in httpd terminology. It's an internal
redirect. I'm not sure if we need it that specific here, through.
nd
--
my @japh = (sub{q~Just~},sub{q~Another~},sub{q~Perl~},sub{q~Hacker~});
my $japh = q[sub japh { }]; print join #########################
[ $japh =~ /{(.)}/] -> [0] => map $_ -> () # André Malo #
=> @japh; # http://www.perlig.de/ #
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
Re: [users@httpd] mod_rewrite subrequests or last rules within
Posted by Takashi Sato <ta...@lans-tv.com>.
On Fri, 28 Nov 2008 21:12:01 +0900
Takashi Sato <ta...@lans-tv.com> wrote:
> On Wed, 26 Nov 2008 14:28:34 -0500
> "Eric Covener" <co...@gmail.com> wrote:
>
> > On Wed, Nov 26, 2008 at 2:22 PM, Rich Bowen <rb...@rcbowen.com> wrote:
> > > I've added it to trunk in r720955. Does this need to go in 2.0 and 2.2 also?
> > > Thanks.
> >
> > Thanks -- I believe it should be backported to 2.0 and 2.2.
> >
>
> +1
> "as if it were a new request. " is very helpful
Done.
r721621 and r721622.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
Re: [users@httpd] mod_rewrite subrequests or last rules within
Posted by Takashi Sato <ta...@lans-tv.com>.
On Wed, 26 Nov 2008 14:28:34 -0500
"Eric Covener" <co...@gmail.com> wrote:
> On Wed, Nov 26, 2008 at 2:22 PM, Rich Bowen <rb...@rcbowen.com> wrote:
> > I've added it to trunk in r720955. Does this need to go in 2.0 and 2.2 also?
> > Thanks.
>
> Thanks -- I believe it should be backported to 2.0 and 2.2.
>
+1
"as if it were a new request. " is very helpful
Regards,
Takashi
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
Re: [users@httpd] mod_rewrite subrequests or last rules within
Posted by Eric Covener <co...@gmail.com>.
On Wed, Nov 26, 2008 at 2:22 PM, Rich Bowen <rb...@rcbowen.com> wrote:
> I've added it to trunk in r720955. Does this need to go in 2.0 and 2.2 also?
> Thanks.
Thanks -- I believe it should be backported to 2.0 and 2.2.
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
Re: [users@httpd] mod_rewrite subrequests or last rules within
Posted by Rich Bowen <rb...@rcbowen.com>.
I've added it to trunk in r720955. Does this need to go in 2.0 and 2.2
also?
Thanks.
On Nov 26, 2008, at 09:30, Eric Covener wrote:
> based on questions/problems on #apache, this probably does deserve
> some emphasis
>
>
> ---------- Forwarded message ----------
> From: Peter Kehl <pe...@gmail.com>
> Date: Wed, Nov 26, 2008 at 9:10 AM
> Subject: Re: [users@httpd] mod_rewrite subrequests or last rules
> within <Directory>
> To: users@httpd.apache.org
>
>
> Eric,
>
> thank you.
>
> Now I see it's mentioned at
> http://httpd.apache.org/docs/2.0/rewrite/rewrite_tech.html mentions
> that 'in per-directory context mod_rewrite first rewrites the
> filename... and then initiates a new internal sub-request with the new
> URL. This restarts processing of the API phases.'
>
> I originally only read
> http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html. It says
> 'Because the per-directory rewriting comes late in the process, the
> rewritten request has to be re-injected into the Apache kernel' - but
> it's not clear what is actually hapening to the request. Whoever
> maintains this web page, please could you append something like 'as if
> it were a new request - see
> [http://httpd.apache.org/docs/2.0/rewrite/rewrite_tech.html ]' or '
> and it checks for any applicable rules again, from all its per-server
> or per-directory contexts' (or something more clear).
>
> Thank you
>
> 2008/11/26 Eric Covener <co...@gmail.com>:
>>> rewriter log says it rewrites to /index.php first (1st rule) and
>>> then
>>> it rewrites it to /set_cookie.php (2nd rule). I thought [L] and [NS]
>>> should stop any further rules. What am I missing?
>>
>> In per-directory context, any time you make a change the entire cycle
>> is restarted -- 'L' only applies to the current pass.
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
> For additional commands, e-mail: docs-help@httpd.apache.org
>
--
I have nature and art and poetry,
and if that is not enough, what is enough?
(Vincent van Gogh)