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;
}

配置后即可正常提交

相关推荐
難釋懷19 小时前
Nginx-proxy缓存清理
运维·nginx·缓存
万岳科技系统开发19 小时前
AI赋能互联网医院小程序开启智慧医疗新时代
人工智能·小程序·apache
云小逸1 天前
【SVN 详细使用指南:从入门到团队协作】
c++·svn
nvd112 天前
基于 ArgoCD 优雅落地 K8s Gateway API 与 Kong 控制器(KIC)
kubernetes·gateway·argocd
愤怒的苹果ext2 天前
Apache Superset 使用
apache·doris·bi·superset·ai bi
用户0780625347192 天前
getUserMedia 权限排障实战:浏览器拒绝,不一定是用户点了“拒绝”
nginx·webrtc
qq_185198692 天前
骆驼任务Flowable + Apache Camel 集成
spring·apache·flowable
ClickHouseDB2 天前
ClickHouse 十年开源,今非昔比!
clickhouse·开源·apache
weixin_446729162 天前
Nginx简单学习与了解
运维·nginx
云计算磊哥@2 天前
运维开发宝典058-大型网站nginx服务器管理全集4
服务器·nginx·运维开发