server
{
listen 80;
server_name m.abd.com;
rewrite ^(.*)$ https://$host$1 permanent;
}
server
{
listen 443 ssl http2;
server_name m.abd.com;
index index.html index.htm index.php default.html default.php;
root /www/web/abd-com;
#ssl on;
ssl_certificate /www/ssl/abd-m/full_chain.pem;
ssl_certificate_key /www/ssl/abd-m/private.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
ssl_ciphers TLS13-AES-256-GCM-SHA384:TLS13-CHACHA20-POLY1305-SHA256:TLS13-AES-128-GCM-SHA256:TLS13-AES-128-CCM-8-SHA256:TLS13-AES-128-CCM-SHA256:EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+ECDSA+AES128:EECDH+aRSA+AES128:RSA+AES128:EECDH+ECDSA+AES256:EECDH+aRSA+AES256:RSA+AES256:EECDH+ECDSA+3DES:EECDH+aRSA+3DES:RSA+3DES:!MD5;
ssl_session_cache builtin:1000 shared:SSL:10m;
# o
Nginx域名配置文件bak
最新推荐文章于 2024-08-14 07:00:00 发布
本文详细介绍了如何配置Nginx以处理不同域名,并重点讲解了HTTPS配置文件的创建与应用,确保网站安全通信。
摘要由CSDN通过智能技术生成