为 SVN 源代码管理设置 SSL
我正在 Windows Server 2008 计算机上配置 CollabNet SVN 服务器 (http://www.collab.net/downloads/subversion/)。它在 http 配置下工作得很好。但是当我启用 https 并附加 ssl 证书时,我无法启动 SVN 服务器。
我认为,这是因为端口问题。我可以在端口 8080 上运行 SVN 服务器(http://domainname:8080/),但是当我将端口更改为 80 时,它会显示 - '服务器无法绑定到端口“80”。检查使用该端口的权限以及其他进程是否正在使用该端口。 我检查了端口的绑定,它没有被任何其他进程使用。所以端口 80 不起作用,我无法在端口 8080 上使用 https。
所以想知道是否有人以前见过这个问题并知道任何可能的解决方案。
谢谢。
I'm configuring CollabNet SVN server (http://www.collab.net/downloads/subversion/) on windows server 2008 machine. It works fine with http configuration. But when i enable https and attach ssl certificate to it, I can't start the SVN server.
I think, its because of the port issue. I can run SVN server on port 8080 fine (http://domainname:8080/), but when i change the port to 80 it says - 'The server could not bind to port "80". Check permission to use the port and that another process is not using the port.'
I checked binding of port and it's not been used by any other process. So port 80 doesn't work and i can't use https on port 8080.
So just wondering if anyone has seen this issue before and know any possible solution for this.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果启用 SSL 选项,Apache 默认情况下将尝试使用端口 443,它应该尝试使用端口 80 进行非 SSL 流量。如果正如你所说,你安装了 IIS,它可能会占用端口 80 和 443。据我所知,这是你在网卡上占用的端口而不是 IP 地址 - 但我可能是错的!您可以尝试安装另一个网卡并在该网卡上设置 apache IP,或者禁用/删除 IIS,或者尝试使用 443 以外的端口来连接此站点。
或者,如果您使用 Subversion Edge for Visual Studio(大多数版本,包括 2010 VB 和 C#)开发,您可以从另一台计算机访问管理控制台吗?
应该位于 https://:4434/csvn 之类的位置(如果启用了 SSL)
或 http://:3343/csvn(非 SSL) 如果是这样,您可以使用 Visual Studio 的 AnkhSVN 插件(也来自 Collabnet),它允许您直接在 Visual Studio 中访问存储库。它通过 SubversionEdge 管理 URL 来访问存储库。
If you enable the SSL options Apache will try and use port 443 by default it should be trying to use port 80 for non SSL traffic. If as you say, you have IIS installed it is probably grabbing port 80 and 443. As far as I'm aware it is the port you are grabbing on the network card not the IP address - I could be wrong though! You could trying installing another network card and setting up the apache IP on that or disabling / removing IIS or trying to use a different port than 443 for SSL to this site.
Alternatively, if you are using the Subversion Edge for Visual Studio (most versions including 2010 both VB and C#) development, can you access the admin console from another machine?
Should be on something like https://:4434/csvn (if SSL enabled)
or http://:3343/csvn (non SSL) If so, you could use the AnkhSVN plugin to Visual Studio (also from Collabnet) which allows you to access your repository directly in Visual Studio. It goes through the SubversionEdge Admin URL to access the repository.