httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Folini <christian.fol...@post.ch>
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,

Christian


---------------------------------------------------------------------
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


Mime
View raw message