INFO-实现中台页面和easyops页面ip跳转域名

适合模块
平台以及easyops
使用示例
以easyops为例子,修改nginx配置
一、https授权信证书转换和替换步骤
1. 将证书文件解压后上传到服务
INFO-实现中台页面和easyops页面ip跳转域名 - 图1
2.转换得到.crt和.key文件
openssl pkcs7 -print_certs -in VWATDLSF2110061.ap.vwg.p7b -out cert.cer
openssl pkcs12 -export -in cert.cer -inkey cert.key -out cert.pfx
openssl pkcs12 -in kibana_new.pfx -nodes -out kibana_new.pem
openssl rsa -in kibana_new.pem -out cret_new.key
openssl x509 -in kibana_new.pem -out cert_new.crt
3.将key和crt文件配置到nginx中
INFO-实现中台页面和easyops页面ip跳转域名 - 图2
4. 重启easyops即可
二、ip跳转域名
1、配置解释
ssl on;
ssl_session_timeout 60m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
#下面该配置http ip跳转至域名
error_page 497 301 https://datacptmanagetest.ap.vwg:8000;
#下面该配置https ip跳转至域名
if ($host != 'datacptmanagetest.ap.vwg') {
return 301 https://datacptmanagetest.ap.vwg:8000/$request_uri;
}
2. 配置到nginx中,重启easyops
INFO-实现中台页面和easyops页面ip跳转域名 - 图3

作者:刘家有