httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Folini <>
Subject [users@httpd] Logging wether a request has been proxied or not
Date Fri, 19 Oct 2007 14:38:51 GMT
Hi there,

I am trying to figure out a simple way to write a
flag into the access log. This flag should state
wether a request has been treated locally or wether
it has been proxied/forwarded to a backend server.

So far I arrived with

LogFormat "... %{proxyflag}e ..." extended

SetEnv  proxyflag "L"

RewriteEngine On
RewriteRule /(backends/.*)	http://localhost:8080/$1 [proxy,ENV=proxyflag:P,last]

I am not particulary fond of this rewriterule extension.
So if there is a simpler way to extract the information,
I would appreciate any hint.

have a good weekend everybody,


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message