Trying to add custom error code in nginx

This commit is contained in:
2024-12-27 16:04:06 +02:00
parent 32c589369a
commit fad957762e

View File

@@ -2,6 +2,13 @@
services.nginx = {
enable = true;
virtualHosts."185.170.113.195" = {
extraConfig = ''
error_page 404 /404.html;
location = /404.html {
root /srv/website;
internal;
}
'';
listen = [{
addr = "0.0.0.0";
port = 80;