502 Bad Gateway with nginx + apache + subversion + ssl

svn commit的时候返回

bash 复制代码
unexpected http status 502 'bad gateway' on

解决方法,参考:https://stackoverflow.com/questions/2479346/502-bad-gateway-with-nginx-apache-subversion-ssl-svn-copy

在nginx中代理svn中添加

bash 复制代码
location /svn {
	set $fixed_destination $http_destination;
	if ( $http_destination ~* ^https(.*)$ ) {
	    set $fixed_destination http$1;
	}
	proxy_set_header Destination $fixed_destination;
	proxy_set_header Host $http_host;
}

配置后即可正常提交

相关推荐
橘子☆心酸14 小时前
Git 的自我修养
git·svn·gitee
Csvn1 天前
Nginx 高可用网关:VIP 切换、proxy_protocol 与 SNI 分流实战
后端·nginx
wno7041 天前
Nginx代理MySQL或PG连接
运维·mysql·nginx
7177771 天前
SVN 迁移到 Git 用什么工具:git-svn、svn2git 与平台化方案的取舍
git·svn
Csvn2 天前
Nginx 性能调优与压测:连接账本、找拐点与调优前后对比
后端·nginx
Csvn3 天前
Nginx 与 OpenResty:阶段钩子、shared dict 与动态 upstream/证书
后端·nginx
Csvn4 天前
Nginx HTTPS 与安全加固:会话复用、OCSP、mTLS 与限流取舍
后端·nginx
captain3764 天前
SpringCloud(12)-Gateway
spring boot·spring cloud·gateway
jaysee-sjc5 天前
【黑马点评】Day02:优惠券秒杀与分布式锁
java·分布式·nginx·spring·node.js·tomcat·maven
Csvn5 天前
Nginx 日志、监控与排障:全字段日志、条件日志与证据链定位
后端·nginx