server {
listen 443 ssl;
server_name example.com; # 替换为您的域名
ssl_certificate /etc/nginx/ssl/your_certificate.crt; # 替换为您的证书文件路径
ssl_certificate_key /etc/nginx/ssl/your_private_key.key; # 替换为您的私钥文件路径
# 其他配置...
location / {
# ...
}
}
2024-06-02 16:44:40
server {
listen 443 ssl;
server_name example.com; # 替换为您的域名
ssl_certificate /etc/nginx/ssl/your_certificate.crt; # 替换为您的证书文件路径
ssl_certificate_key /etc/nginx/ssl/your_private_key.key; # 替换为您的私钥文件路径
# 其他配置...
location / {
# ...
}
}