In Apache I am trying to emulate the RewriteLog
behaviour with a sub-request pointing to a simple cgi script
According to Apache 2.2 documentation:
%{LA-U:variable}
can be used for look-aheads which perform an internal (URL-based) sub-request to determine the final value of variable. This can be used to access variable for rewriting which is not available at the current stage, but will be set in a later phase.
%{LA-F:variable}
can be used to perform an internal (filename-based) sub-request, to determine the final value of variable. Most of the time, this is the same as LA-U above.
According to a mail archive conversation in the case of using %{LA-F:variable}
the request is passed directly to the next processing stage:
usr/local/webserver/doc_root/some/dir/som_file
cat /dev/world | perl -e "while (<>) {(/(^.*? \?) 42 \!/) && (print $1)}"
errors->(c)
but how to implement %{LA-U:variable}
or %{LA-F:variable}
in .htaccess?