Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
12 lines
703 B
Cheetah
12 lines
703 B
Cheetah
root {{ROOT}};
|
|
index index.html;
|
|
access_log {{LOG}} awstats;
|
|
error_page 503 /__aw_maint;
|
|
location = /__aw_maint { internal; default_type text/html; add_header Cache-Control "no-store" always; return 503 '{{MAINT_HTML}}'; }
|
|
if (-f {{SITE_DIR}}/.maintenance) { return 503; }
|
|
if (-f {{SITE_DIR}}/.limited) { rewrite ^ /__aw_limited last; }
|
|
location = /__aw_limited { internal; default_type text/html; add_header Cache-Control "no-store" always; return 503 '{{LIMIT_HTML}}'; }
|
|
location ~ /\. { return 404; }
|
|
location / { try_files $uri $uri/ /index.html =404; add_header Cache-Control "no-cache" always; }
|
|
location /uploads/ { alias {{SITE_DIR}}/data/uploads/; }
|