Ver Fonte

Nginx conf.

dujian há 1 semana atrás
pai
commit
a06ffc0de6
1 ficheiros alterados com 19 adições e 0 exclusões
  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;
+    }
+}