Re: REMOTE_USER look-ahead in a "RewriteCond expr" ap_expr

2012-06-15 Thread Stefan Fritsch
On Friday 15 June 2012, Richard Davies wrote: > I've been trying to test this, and I don't think it works. > > I believe that $1 would be a RewriteRule backreference, whereas we > would need a RewriteCond backreference %1 here: > http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html#rewritecond N

Re: REMOTE_USER look-ahead in a "RewriteCond expr" ap_expr

2012-06-15 Thread Richard Davies
Stefan Fritsch wrote: > Richard Davies wrote: > > I'm trying to use the Apache 2.4 ap_expr syntax to write a complex > > test with "RewriteCond expr". My test uses %{REMOTE_USER}. > > > > However, the %{LA-U:REMOTE_USER} look-ahead syntax needed to access > > this variable in a per-server context d

Re: REMOTE_USER look-ahead in a "RewriteCond expr" ap_expr

2012-05-29 Thread Stefan Fritsch
On Tuesday 29 May 2012, Richard Davies wrote: > I'm trying to use the Apache 2.4 ap_expr syntax to write a complex > test with "RewriteCond expr". My test uses %{REMOTE_USER}. > > However, the %{LA-U:REMOTE_USER} look-ahead syntax needed to access > this variable in a per-server context doesn't se

REMOTE_USER look-ahead in a "RewriteCond expr" ap_expr

2012-05-29 Thread Richard Davies
Hi all, I'm trying to use the Apache 2.4 ap_expr syntax to write a complex test with "RewriteCond expr". My test uses %{REMOTE_USER}. However, the %{LA-U:REMOTE_USER} look-ahead syntax needed to access this variable in a per-server context doesn't seem to work inside an ap_expr - I get a parse er