server {
listen 80;
server_name eisc.cn www.eisc.cn;
return 301 https://www.eisc.cn$request_uri;
# 添加不带和带 www 的都转跳的 https://www
}
server{
listen 443 ssl;
server_name eisc.cn;
return 301 https://www.eisc.cn$request_uri;
# 不带www 转跳到 www https 依然需要ssl 证书
ssl_certificate /eisc/www/ssl/eisc/eisc.pem;
ssl_certificate_key /eisc/www/ssl/eisc/eisc.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
ssl_prefer_server_ciphers on;
}
server{
listen 443 ssl;
server_name www.eisc.cn;
# www 的 https
ssl_certificate /eisc/www/ssl/eisc/eisc.pem;
ssl_certificate_key /eisc/www/ssl/eisc/eisc.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://eisc.cn;
index index.php index.html;
# 由于是内网服务器,需要转发到内网 docker ,docker 已经写入 /etc/hosts
#------------- 可见ip ------------#
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Powered by ddoss.cn 12.0
©2015 - 2025 ddoss
渝公网安备50011302222260号
渝ICP备2024035333号
【实验平台安全承诺书】
小绿叶技术社区,优化网络中,点击查看配置信息
主机监控系统: 安全防火墙已开启检查cc攻击-下载文件完成后等待10s 恢复访问,检查连接数低于峰值恢复访问
您的IP:216.73.216.110,2025-12-01 15:20:52,Processed in 0.01784 second(s).