The code block below assumes that static landing pages in /usr/local/www/html
are being served. For the trusted network (10.1.1.0/24) the landing page will be index.html
(the default). For the untrusted network (anything else!) the landing page will be untrusted.html
.
mydomain.com {
@trusted {
remote_ip 10.1.1.0/24
}
@untrusted {
not remote_ip 10.1.1.0/24
}
root * /usr/local/www/html
file_server @trusted
file_server @untrusted {
index untrusted.html
}
}
Can this be simplified any further?