httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Strader, William A (WAX)" <strad...@y12.doe.gov>
Subject RE: [users@httpd] Apache 1.x/2.x Proxy Logging
Date Thu, 25 Mar 2004 20:52:42 GMT
Well we have it set to log:

<VirtualHost 127.0.0.1:80>
        ServerName myserver.mydomain.com
        ServerAdmin my@email.com
        ErrorLog /data/httpd/logs/error_log
        TransferLog /data/httpd/logs/access_log
        ProxyRequests on
        NoCache *
        <Directory proxy:*>
                order deny,allow
                deny from all
                allow from 127.0.0.1
        </Directory>
</VirtualHost>


However we are not seeing anyone in the log file... Can you give me some
sort of hint how my config needs to look to log the request?

Thanks,

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


-----Original Message-----
From: Joshua Slive [mailto:joshua@slive.ca]
Sent: Thursday, March 25, 2004 3:48 PM
To: 'users@httpd.apache.org'
Subject: Re: [users@httpd] Apache 1.x/2.x Proxy Logging



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

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