location ~ /(svn|!) {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_buffering on;
#处理svn: E175002: Unexpected HTTP status 502 'Bad Gateway' on
set $fixed_destination $http_destination;
if ( $http_destination ~* ^https(.*)$ ) {
set $fixed_destination http$1;
}
proxy_set_header Destination $fixed_destination;
proxy_pass http://127.0.0.1:7080;
}
Nginx+SVN
最新推荐文章于 2024-04-27 12:46:14 发布