wlyyb521 发表于 2018-11-11 11:33:14

NGINX 502错误排查

  server_name www.mydomain.com;
  location /myproj/repos {
  set $fixed_destination $http_destination;
  if ( $http_destination ~* ^https(.*)$ )
  {
  set $fixed_destination http$1;
  }
  proxy_set_header Host $host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header Destination $fixed_destination;
  proxy_pass http://subversion_hosts;
  }

页: [1]
查看完整版本: NGINX 502错误排查