通过https访问本地服务器:80,但不是没有

我可以访问https:// svnserver:80 /本地通过我的网页浏览器,但是当我删除:80它根本不工作….任何想法?

UPDATE

当我去https:// svnserver:443 /它说:

SSL received a record that exceeded the maximum permissible length. (Error code: ssl_error_rx_record_too_long) 

我遵循默认的说明,通过官方文档在Ubuntu上创build一个私人的SSH密钥…

UPDATE

我的ports.conf

 NameVirtualHost *:80 Listen 80 <IfModule mod_ssl.c> # SSL name based virtual hosts are not yet supported, therefore no # NameVirtualHost statement here Listen 443 </IfModule> 

netstat -lp结果

 Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 *:www *:* LISTEN 5285/apache2 tcp 0 0 *:https *:* LISTEN 5285/apache2 tcp 0 0 *:22 *:* LISTEN 2351/sshd tcp6 0 0 [::]:22 [::]:* LISTEN 2351/sshd udp 0 0 *:bootpc *:* 2239/dhclient3 Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 2 [ ACC ] STREAM LISTENING 14927 5288/apache2 /var/run/apache2/cgisock.5285 unix 2 [ ACC ] STREAM LISTENING 5032 2114/dbus-daemon /var/run/dbus/system_bus_socket unix 2 [ ACC ] STREAM LISTENING 4857 2039/acpid /var/run/acpid.socket 

由于某些原因,这个svn服务器在端口80上configuration了https。浏览器需要被告知它正在寻找端口80 / TCP上的https服务器,这就是为什么你需要指定https:80

背景:

标准Webstream量通过端口80 / TCP标准httpsstream量通过端口443 / TCP

大多数networking浏览器都认为不合格的URL是标准的http连接,并将它们发送到端口80.需要https的Web服务器通常会做一个redirect(如403)来将浏览器发送到HTTPS版本的页面,但是Web浏览器也是假设在443 / TCP上发生HTTPSstream量。 必须在URL中指定非标准端口上的HTTPSstream量,否则浏览器将尝试将其发送到443 / TCP。

重申一下,如果没有HTTP页面将您的浏览器redirect到正确的HTTPS内容,并且HTTPS内容位于非标准端口,则您始终需要指定协议和端口。

更新

我查看了这个问题: 使用Apache上的自签名证书设置https

答案可能会解决您的configuration问题。 这听起来像HTTP可能正在侦听443和80上的HTTPS

这是b / c https是端口443和端口80是http。 我会使用wireshark查看是否确实使用https或http强制通信到端口80。

除此之外,这是一个正确的Apache / IISconfiguration设置的问题。

我已经意识到,我可以做到这一点的原因是因为我正在浏览网站的本地linux机器有svnserver的logging,因为我以前ssh'd它。 :卫生署:!

当我更改时,SSL也会出现错误:80到:443表示80即使显示https并且没有发生错误,也不会encryption数据。