Subversion behind nginx...

Sonny Chee lists at
Thu Sep 11 03:03:36 MSD 2008

Hey Guys,

Anyone have success configuring access to a subversion repository behind
nginx?  I thought the following snippet would forward subversion calls
to the svn server... but I keep getting "...502 Bad Gateway.."  Any
hints would be greatly appreciated.

    location /svn {
            include         /etc/nginx/proxy.conf;
            set  $dest  $http_destination;
            if ($http_destination ~ "^https://(.+)") {
               set  $dest   http://$1;
            proxy_set_header  Destination   $dest;

Posted via

More information about the nginx mailing list