https on apache2。 https无法解决侧面家庭网络问题

时间:2017-07-11 04:37:46

标签: ssl https apache2 port forwarding

我在我的覆盆子pi(raspbian)上运行apache2上的个人网站,使用no-ip动态DNS服务。端口80在我的家用路由器上转发,网站可在家庭网络外部访问。 现在我正在尝试为网站启用https。我已将证书放在服务器上, 我先跑到下面,

sudo a2enmod ssl

/etc/apache2/apache2.conf有,

<VirtualHost <my local ip>:443>
DocumentRoot /var/www/html
ServerName raspiabita.ddns.net
SSLEngine on
SSLCertificateFile /var/www/html/certificate.crt
SSLCertificateKeyFile /var/www/html/private.key
SSLCertificateChainFile /var/www/html/ca_bundle.crt
</VirtualHost>

/etc/apache2/ports.conf位于

之下
Listen 80
<IfModule ssl_module>
      Listen 443
</IfModule>
<IfModule mod_gnutls.c>
      Listen 443
</IfModule>

我已经在我的路由器上转发了端口443。 在家庭网络中,http://工作正常。 https://工作正常。 在家庭网络之外,http://raspiabita.ddns.net有效。但是https://raspiabita.ddns.net不起作用。任何人都可以帮助我吗?

谢谢, 西蒙

0 个答案:

没有答案