只需一步,快速开始
举报
server { listen 80; server_name www.域名1.com; rewrite ^(.*) https://$server_name$1 permanent; } server { listen 443; server_name www.域名1.com; root /home/wwwroot/www; #index index.php index.html index.htm; ssl on; ssl_certificate /usr/local/nginx/conf/ssl/www.crt; ssl_certificate_key /usr/local/nginx/conf/ssl/www.key; }
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|全球主机交流论坛
GMT+8, 2025-1-11 03:55 , Processed in 0.091739 second(s), 11 queries , Gzip On, MemCache On.
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.