note 94164 deleted from features.http-auth by cmb
| From: | cmb@php.net | Date: | Sun, 25 Aug 2019 09:03:43 +0000 |
| Subject: | note 94164 deleted from features.http-auth by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-211996@lists.php.net to get a copy of this message | ||
Note Submitter: ale (at) tana (dot) it
----
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);
?>