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:
parent
2e503d808b
commit
e451c5e807
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue