%REMOTE_USER%
expands to
REMOTE_USER
variable only expands when the active script is configured to Require valid-user
in the Apache configuration. Eg. If your site uses Apache authentication and allows guest access, view this page with bin/view
and bin/viewauth
to see the effect.