Browse Source

更新 'hw/nginx/conf.d/default.conf'

sckj 3 years ago
parent
commit
ec931cd19e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      hw/nginx/conf.d/default.conf

+ 2 - 2
hw/nginx/conf.d/default.conf

@@ -10,14 +10,14 @@ server {
     listen       80;
     listen  [::]:80;
 
-    server_name     localhost; #用户服务器的域名
+    server_name   *.tshe.cn; #用户服务器的域名
     rewrite ^(.*) https://$server_name$1 permanent;
 }
 
 server {
     # https配置
     listen  443 ssl;
-    server_name     localhost; #用户服务器的域名
+    server_name    *.tshe.cn; #用户服务器的域名
 
     ssl_certificate  cert/server.crt;
     ssl_certificate_key  cert/server.key;