Linux里http任意域名(any)访问都能跳转到https里
1,端口转发
2,反向代理
那,你是用设么服务做呢?
我专栏里,有httpd、nginx的http跳转https的简单设置:
https://blog.csdn.net/qq_41765918/article/details/122437690
https://blog.csdn.net/qq_41765918/article/details/122464986
上面你可以参考来配置,至于tomcat的话,日后再写。
Nginx rewrite规则实现
server {
listen 80;
server_name domain.com;
rewrite ^(.*)$ https://$host$1 permanent;
}
使用nginx或者httpd,配置重定向规则。