0
我已成功地重定向通過執行以下步驟託管在我的主機提供商(的1and1)到EC2實例在AWS上一個子域:點子域到EC2實例
- 創建我的EC2的彈性IP例如
- 增加彈性IP地址到我的子域
問題的DNS設置:我現在如何才能允許HTTPS請求?該子域有一個工作SSl證書,但當我打電話給https://mysubdomain.example.com我收到以下錯誤:
此網站無法到達,mysubdomain.example.com拒絕連接。
我的EC2實例的安全組設置允許HTTPS,但它似乎端口443並不像打字正確打開:
sudo netstat -tlnp
回報:
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 10144/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 3081/master
tcp6 0 0 :::80 :::* LISTEN 16084/httpd
tcp6 0 0 :::22 :::* LISTEN 10144/sshd
tcp6 0 0 ::1:25 :::* LISTEN 3081/master
任何想法? EC2實例正在Apache VirtualHost上運行。非常感謝。
我在Apache上運行和.conf文件看起來是這樣的:
<VirtualHost *:80>
Servername xx.xx.xx.xx
WSGIPassAuthorization On
WSGIDaemonProcess bottle_app threads=5 python-path=/var/www/bottle_app/:/usr/lib/python2.7/site- packages/:/usr/lib64/python2.7/site-packages/
WSGIScriptAlias//var/www/bottle_app/app.wsgi
<Directory /var/www/bottle_app>
WSGIProcessGroup bottle_app
WSGIApplicationGroup %{GLOBAL}
WSGIScriptReloading On
Order deny,allow
Allow from all
# Require all granted
</Directory>
ErrorLog /var/log/httpd/errors.log
CustomLog /var/log/httpd/requests.log combined
</VirtualHost>
何種操作系統,你運行?是否有阻止端口443的防火牆?你能發佈你的Apache配置嗎? –
Oswin,剛剛添加了請求的相關信息Apache conf –
我在下面添加了一個答案。希望有所幫助。 –