Browse Source

fix subdomain

Acathur 4 years ago
parent
commit
f413a552b5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      config/nginx/template/proginn.nginx.conf

+ 2 - 2
config/nginx/template/proginn.nginx.conf

@@ -256,11 +256,11 @@ server {
     }
     }
     location ^~ /kaifain/add {
     location ^~ /kaifain/add {
         proxy_pass http://127.0.0.1:3000;
         proxy_pass http://127.0.0.1:3000;
-        proxy_set_header Host $host;
+        proxy_set_header Host {{domain}}.test.proginn.com;
     }
     }
     location ^~ /kaifain/preview {
     location ^~ /kaifain/preview {
         proxy_pass http://127.0.0.1:3000;
         proxy_pass http://127.0.0.1:3000;
-        proxy_set_header Host $host;
+        proxy_set_header Host {{domain}}.test.proginn.com;
     }
     }
     location ^~ /setting/check/old_mobile {
     location ^~ /setting/check/old_mobile {
         proxy_pass http://127.0.0.1:3000;
         proxy_pass http://127.0.0.1:3000;