没有端口我该如何修复它?
http://askothers.net:8080正在工作,但是http://askothers.net不管用
<VirtualHost *:8080>
ServerName askothers.net
ServerAlias www.askothers.net
Redirect / https://www.askothers.net/
</VirtualHost>
<VirtualHost *:443>
ServerName askothers.net
ServerAlias www.askothers.net
DocumentRoot "/opt/bitnami/apache/htdocs/askothers.net"
SSLEngine on
SSLCertificateFile "/etc/letsencrypt/live/askothers.net/fullchain.pem"
SSLCertificateKeyFile "/etc/letsencrypt/live/askothers.net/privkey.pem"
ServerAdmin [email protected]
ErrorLog "logs/askothers.net-error_log"
CustomLog "logs/askothers.net-access_log" common
</VirtualHost>
答案1
HTTP 的默认端口是 80。您的服务器位于 8080。
您必须更改端口以遵循标准,即 HTTP 为端口 80,HTTPS 为端口 443。