瀏覽代碼

Nginx conf.

dujian 1 周之前
父節點
當前提交
a06ffc0de6
共有 1 個文件被更改,包括 19 次插入0 次删除
  1. 19 0
      docs/00-website.conf

+ 19 - 0
docs/00-website.conf

@@ -0,0 +1,19 @@
+server {
+    listen 80;
+    server_name www.ailien.shop;
+    return 301 https://$host$request_uri;
+}
+
+server {
+    listen 443 ssl;
+    server_name www.ailien.shop;
+
+    ssl_certificate     /etc/nginx/ssl/ailien.shop.pem;
+    ssl_certificate_key /etc/nginx/ssl/ailien.shop.key;
+
+    location / {
+        root /alien_test/nginx/html/alien_website;
+        index index.html;
+        try_files $uri $uri/ /index.html;
+    }
+}