赞
踩
要在 Nginx 中配置两个 HTTPS 网站,您需要执行以下步骤:
server { listen 443 ssl; server_name example.com; ssl_certificate /path/to/example.com.crt; ssl_certificate_key /path/to/example.com.key; location / { root /path/to/example.com; index index.html; } } server { listen 443 ssl; server_name example2.com; ssl_certificate /path/to/example2.com.crt; ssl_certificate_key /path/to/example2.com.key; location / { root /path/to/example2.com; index index.html; } }
请注意,您需要将示例配置文件中的路径和域名替换为您自己的值。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。