瀏覽代碼

Create nginx.conf

This is untested, but *should* work, it's not a complicated config
Belle Aerni 2 年之前
父節點
當前提交
073ee79eae
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. 15 0
      configs/nginx.conf

+ 15 - 0
configs/nginx.conf

@@ -0,0 +1,15 @@
+location ~ ^/Themes/[^/]+/Assets/ {
+    # If the requested file is an asset, serve it directly
+    if (-f $request_filename) {
+        break;
+    }
+}
+
+location /robots.txt {
+    # Allow access to the robots.txt file
+    try_files $uri =204;
+}
+
+location / {
+    try_files $uri $uri/ /index.php?$args;
+}