Try serving index.txt if index.html

Sometimes I just want to serve a txt and making an HTML file with it inside a <pre> block is too much of a hack
This commit is contained in:
Anthony Wang 2024-03-27 17:07:44 +00:00
parent 2e503d808b
commit e451c5e807
Signed by: a
SSH key fingerprint: SHA256:B5ADfMCqd2M7d/jtXDoihAV/yfXOAbWWri9+GdCN4hQ

View file

@ -4,7 +4,7 @@ server {
server_name ~^(?<page>.+)\.exozy\.me;
root /srv/http/$page;
index index.html;
index index.html index.txt;
error_page 502 404 /404.html;
location = /404.html {