Sei*_*lhi 5 apache git ssh proxy
我们在互联网和后端服务器之间设置了一个代理服务器。使用 VirtualHost 指令可以很好地管理 HTTP 请求。
我们在代理后面有一个 git 服务器,我们想只使用 ssh 访问存储库,但去掉 URL 中的端口号。
例如:
ssh://backend.server.com:7999 --> ssh://backend.server.com
下面是apache代理的配置:
ProxyRequests
ProxyPreserveHost On
ProxyVia Full
AllowCONNECT 7999
Run Code Online (Sandbox Code Playgroud)
AllowCONNECT 指令应该通过 ssh 处理端口 7999,但我不确定这个配置是否足够。
当我们通过 ProxyPass 和 ProxyPassReverse 管理 http 时,我需要配置什么来管理 ssh 协议?
谢谢。
我可能会被误导,因为我不知道 Apache 如何处理不同类型流量的所有细节,但是,据我所知: