After we do auth with PHP in Apache, we miss the userid in the access.log file, unless we redefine the LogFormat to be "%{REMOTE_USER}e" rather than "%u", and upon successful authentication we do
<?php
apache_setenv('REMOTE_USER', $user);
?>
Voting
The Note You're Voting On
ale (at) tana (dot) it ¶
3 years ago
