I have an Apache2/svn server which runs behind an nginx reverse proxy. Basic authentication is done by nginx, so basically the Apache2 server behind the reverse proxy does not have to do any authentication stuff.
I have an entry for the user in the authorization config for svn mod_authz_svn:
[/] * = r test = rw
The user test can checkout but not commit.
I do not know how to provide the authenticated user from nginx to the apache2 server hosting the svn installation.
What I tried:
Set the Remote-User HTTP header in the nginx reverse proxy
proxy_set_header REMOTE_USER $remote_user;
Forward the authorization header
proxy_set_header Authorization $http_authorization; proxy_pass_header Authorization;