nginx/pages.conf

20 lines
341 B
Text
Raw Normal View History

2021-05-22 19:54:16 +00:00
server {
2021-06-17 03:28:04 +00:00
listen 443 ssl http2;
listen [::]:443 ssl http2;
2022-01-16 22:28:31 +00:00
server_name ~^(?<user>.+)\.exozy\.me;
2021-05-22 19:54:16 +00:00
include conf.d/ssl;
2021-05-25 03:24:31 +00:00
2022-01-16 22:28:31 +00:00
root /srv/http/pages/$user;
2021-05-25 03:24:31 +00:00
index index.html;
2021-08-02 15:05:27 +00:00
error_page 404 /404.html;
location = /404.html {
internal;
}
2021-05-25 03:24:31 +00:00
location / {
try_files $uri $uri.html $uri/ =404;
2021-05-25 03:24:31 +00:00
}
2021-05-22 19:54:16 +00:00
}