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;
}
欢迎光临 全球主机交流论坛 (https://52.ht/) | Powered by Discuz! X3.4 |