You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Strader, William A (WAX)" <st...@y12.doe.gov> on 2004/03/25 21:42:22 UTC

[users@httpd] Apache 1.x/2.x Proxy Logging

Is there anyway to make mod_proxy log who uses the server as a proxy system?

Thanks,

Billy S.
WebPool
Office: (865) 425-5178
Pager: (865) 417-5012

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


Re: [users@httpd] Apache 1.x/2.x Proxy Logging

Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 25 Mar 2004, Strader, William A (WAX) wrote:

> Is there anyway to make mod_proxy log who uses the server as a proxy system?

Sure.  All mod_proxy requests are logged to the access log just like any
other request.  See:
http://httpd.apache.org/docs-2.0/logs.html

The only complication is figuring out which requests are proxied and which
are for local content.  One way to do that is to check if an absolute-URI
is used in the request.  But a perhaps a more reliable way is to confine
your proxy to a specific virtual host that does only proxying, and log
that virtual host to a different access log.

Joshua.

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