代理导致域名无法访问此网站

​ 将linux的cas项目部署到windows上,访问https://cas.example.com:8443显示如下页面。

image-20230927171634190

误认为和项目配置有关系

​ cas-template有个配置文件在/etc/cas/config/cas.properties,配置信息如下。

1
2
3
4
5
6
cas.server.name: https://cas.example.org:8443
cas.server.prefix: https://cas.example.org:8443/cas

cas.adminPagesSecurity.ip=127\.0\.0\.1

logging.config: file:/etc/cas/config/log4j2.xml

​ 这里配置的域名是在集群的时候才有用的,单机并没有意义,而我误以为不能访问是因为这个配置没有生效。

确认https是正常的

​ 因为我的启动方式是./gradlew run通过内置的tomcat启动,所以https证书是通过springboot进行管理的,application.yml的配置没有问题。

1
2
3
4
5
server:
ssl:
key-store: file:/etc/cas/thekeystore
key-store-password: changeit
key-password: changeit

代理可能影响

​ 关掉clash代理,果然可以了。可以在Clash For Windows中Settings > System Proxy > Bypass Domain中添加不走代理的列表。