You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jason Grigsby <ja...@userfirstweb.com> on 2003/10/24 02:18:41 UTC

[users@httpd] Proxypass not logging remote_user in access.log

We use proxypass and rewrite rules as a front-end to Zope. I noticed 
recently that our apache log files, which we use as our primary logging 
mechanism, did not contain remote user information. The logs do contain 
remote user information for for items that are not handled by proxypass.

To test my theory that the problem was related to proxypass, I made a 
very simple proxy pass configuration to test with:

<VirtualHost 12.224.173.56>
     ServerAdmin jason@kavi.com
     ServerName example.userfirstweb.com

     ErrorLog /var/log/apache/error.log
     TransferLog /var/log/apache/access.log

     ProxyPass / http://www.example.org/
     ProxyPassReverse / http://www.example.org/
</VirtualHost>

Where http://www.example.org/ is a password protected web site. When I 
access this page, I see the following log entries:

12.224.173.56 - - [23/Oct/2003:16:44:22 -0700] "GET /members/ HTTP/1.1" 
401 8051
12.224.173.56 - - [23/Oct/2003:16:44:30 -0700] "GET /members/ HTTP/1.1" 
200 30954

What I would expect to see would be:

12.224.173.56 - - [23/Oct/2003:16:44:22 -0700] "GET /members/ HTTP/1.1" 
401 8051
12.224.173.56 - username [23/Oct/2003:16:44:30 -0700] "GET /members/ 
HTTP/1.1" 200 30954

I've done quite a bit of searching on Google, the apache mailing list 
archives, and the zope list archives for someone describing a similar 
problem with proxypass to no avail. I've reviewed the apache mod_proxy, 
rewrite and logformat documentation and haven't found anything that 
sounds like it would help with this problem.

Does anyone have any thoughts on how to get the username (REMOTE_USER) 
recorded in the log files when you use proxypass?

Thank You,

Jason


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