[英]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.