nginx and svn copy not working

165 views
Skip to first unread message

Michael March

unread,
Nov 25, 2015, 12:30:01 PM11/25/15
to scmmanager
I'm running nginx in front of SCM manager. Here's my config:

server {
  server_name svn.example.com;
  ssl_certificate /etc/ssl/certs/example_bundle.crt;
  ssl_certificate_key /etc/ssl/certs/star_example_com.key;

  listen 443;
  gzip off;
  ssl on;
  client_max_body_size 500m;
ssl_session_timeout 30m;


  location / {

    proxy_set_header X-Real-IP         $remote_addr;
    proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header Host $http_host;
    proxy_pass http://scm_manager/;

    proxy_intercept_errors on;
proxy_connect_timeout       1900;
proxy_send_timeout          1900;
proxy_read_timeout          1900;
send_timeout                1900;
proxy_buffering    off;
proxy_buffer_size  128k;
proxy_buffers 100  128k;
  }
}

Here's my command:


I'm getting this error:

svn: E175002: Adding directory failed: COPY on /scm/svn/Customer-thirdParty-custom/!svn/bc/18/CustomerDealerAdminModule/trunk (400 Bad Request)

I add this to the config:

     set $fixed_destination $http_destination;
        if ( $http_destination ~* ^https(.*)$ ) {
            set $fixed_destination http$1;
        }

... and I get this:

svn: E175002: COPY request on '/scm/svn/Customer-thirdParty-custom/!svn/bc/18/CustomerDealerAdminModule/trunk' failed: 501 Method COPY is not defined in RFC 2068 and is not supported by the Servlet API

Michael March

unread,
Nov 27, 2015, 4:05:34 PM11/27/15
to scmmanager
How about this, is anyone using nginx as a reverse proxy in front of scm-manager?

Michael March

unread,
Nov 30, 2015, 11:38:46 AM11/30/15
to scmmanager
Cancel this..  adding this:

    set $fixed_destination $http_destination;
        if ( $http_destination ~* ^https(.*)$ ) {
            set $fixed_destination http$1;
        }

Only borked things up.. Everything is working using the normal configuration.

thx!
Reply all
Reply to author
Forward
0 new messages