Subversion behind nginx...

Sonny Chee lists at ruby-forum.com
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 {
            proxy_pass      http://127.0.0.1:80;
            include         /etc/nginx/proxy.conf;
            set  $dest  $http_destination;
            if ($http_destination ~ "^https://(.+)") {
               set  $dest   http://$1;
            }
            proxy_set_header  Destination   $dest;
    }


Sonny.
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list