瀏覽代碼

fix error in nginx config

pull/342/head
Guillaume Vincent 8 年之前
父節點
當前提交
14cc12d27d
共有 1 個檔案被更改,包括 6 行新增4 行删除
  1. +6
    -4
      backend.conf.j2

+ 6
- 4
backend.conf.j2 查看文件

@@ -1,16 +1,18 @@
server {
listen 80;
server_name localhost *.{{ domain }};
server_name www.{{ domain }};
return 301 $scheme://{{ domain }}$request_uri;
}

server {
server_name {{ domain }} localhost;
return 301 https://$server_name$request_uri;
}


server {
listen [::]:443 ssl;
listen 443 ssl;

server_name localhost *.{{ domain }};
server_name {{ domain }} localhost;

charset utf-8;



Loading…
取消
儲存