天天看點

阿裡雲伺服器配置https(port443)後用戶端 svn check out 失效解決辦法

1. 用戶端環境

1. 作業系統:Windows 7

2. svn用戶端:TortoiseSVN

2. 服務端環境

1. 雲服務平台:阿裡雲

2. 作業系統:Windows Server 2008 R2 Enterprise

3. svn用戶端:TortoiseSVN

4. svn伺服器:VisualSVN Server

3. 起因及現象

将伺服器IIS網站綁定了http:*:80 和 https:*:443。因 VisualSVN Server 預設使用伺服器 443 端口,IIS網站綁定 443 端口後導緻 VisualSVN Server 不可用,需将 VisualSVN Server 端口改為 8443。此時在用戶端使用 svn commit 時會提示如下錯誤資訊

Commit failed (details follow):

Unable to connect to a repository at URL 'https://[your IP]:8443/svn/[your project iname]'

The XML response contains invalid XML

Malformed XML: no element found

(其中 your IP 形如 123.456.12.123)

或 check out 時會提示如下錯誤資訊

Unable to connect to a repository at URL 'https://[your IP]:8443/svn/[your project iname]'

The XML response contains invalid XML

4. 原因及解決方案

需要在阿裡雲安全組中放行8443端口(或其它需要的端口),,形式如下。

阿裡雲伺服器配置https(port443)後用戶端 svn check out 失效解決辦法

添加安全組規則參考 https://help.aliyun.com/document_detail/25471.html

至此問題即解決。

關于 VisualSVN Server 的相關配置參見 【Windows平台下結合 tortoiseSVN 和 VisualSVN Server 搭建SVN伺服器并實作 web 站點同步】

繼續閱讀