Proxy vhost's log does not get username/uid?
Concerned version
Version: %2.0.13
Platform: Nginx
Summary
While the Portal does get the username/uid in the log (thanks to log_format lm_app '$remote_addr - $upstream_http_lm_remote_user ...
configured), the Proxy does not.
log_format lm_app '$remote_addr - $upstream_http_lm_remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" $upstream_http_lm_remote_custom';
# Used in the access log settings:
# - Portal:
access_log /var/log/nginx/auth-test.example.com_access.log lm_app;
# - Proxy:
access_log /var/log/nginx/glpi-test.example.com_access.log lm_app;
Am I missing something, or is it a bug?
Logs
# On the Portal
::ffff:10.1.2.3 - mathieu [22/Dec/2021:10:49:16 +0100] "GET /portal.css HTTP/2.0" 200 ...
^^^^^^^ Correct.
# On the Proxy (in the log of a vhosted app)
::ffff:10.1.2.3 - - [22/Dec/2021:10:50:15 +0100] "GET /front/central.php HTTP/2.0" 200 ...
^ Nothing here.