[英]Rails 3 + Passenger + Apache: How to change the port for SSL from 443 to 8443?
我的托管服务告诉我将SSL端口从443更改为8443,因为OpenSSL测试失败,即使它们正在生产中也可以正常工作。
我将我的apache ports.conf
文件更改为:
NameVirtualHost *:80
#NameVirtualHost *:443
NameVirtualHost *:8443
Listen 80
<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
#Listen 443
Listen 8443
</IfModule>
<IfModule mod_gnutls.c>
#Listen 443
Listen 8443
</IfModule>
我也将虚拟主机从<VirtualHost *:443>
更改为<VirtualHost *:8443>
并重新启动了apache,但是当我尝试通过https访问该站点时,浏览器说: Firefox can't establish a connection to the server
。 可能是防火墙问题吗?
首先,配置看起来不错,我假设您已启用ssh
ssh在机器上:
wget --no-check-certificate https://127.0.0.1:8443
或curl -k https://127.0.0.1:443
(发布内容) sudo netstat -anp | grep 8443
或sudo lsof | grep ":8443"
) /etc/init.d/apache2 restart
的输出是什么) 从您的笔记本电脑:
尝试一下这本书 ,学习新的故障排除技术很棒。
配置接缝正确,您现在如何尝试访问您的站点? 应该
https://yourdomain.com:8443/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.