再检查完安全组端口放通后,网站https可以访问,但是http仍然无法访问
再使用nginx服务器的情况下,只需在conf文件中添加如下代码
server {
listen 80;
server_name ximingx.org.cn;
rewrite ^(.*) https://$host$1 permanent;
}
再检查完安全组端口放通后,网站https可以访问,但是http仍然无法访问
再使用nginx服务器的情况下,只需在conf文件中添加如下代码
server {
listen 80;
server_name ximingx.org.cn;
rewrite ^(.*) https://$host$1 permanent;
}