Files
Work-configuration-file/nginx/jenniefy.com.conf

31 lines
1.1 KiB
Plaintext
Raw Normal View History

2025-10-07 15:58:15 +08:00
server {
#SSL 默认访问端口号为 443
listen 443 ssl;
#请填写绑定证书的域名
server_name www.jenniefy.com jenniefy.com;
#请填写证书文件的相对路径或绝对路径
ssl_certificate /data/tengine/certificate/jenniefy.com_bundle.crt;
#请填写私钥文件的相对路径或绝对路径
ssl_certificate_key /data/tengine/certificate/jenniefy.com.key;
ssl_session_timeout 5m;
#请按照以下套件配置,配置加密套件,写法遵循 openssl 标准。
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
#请按照以下协议配置
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
location / {
#网站主页路径。此路径仅供参考,具体请您按照实际目录操作。
#例如,您的网站主页在 Nginx 服务器的 /etc/www 目录下,则请修改 root 后面的 html 为 /etc/www。
root /data/tengine/html/jennie.com/CIRCUITRY;
index index.html index.htm;
}
}
server {
listen 80;
#请填写绑定证书的域名
server_name www.jenniefy.com jenniefy.com;
#把http的域名请求转成https
return 301 https://$host$request_uri;
}