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;

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.