Logging wether a request has been proxied or not

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux