I need some help or advice configuring nginx. i know apache2 configs but nginx is new to me.
My setup:
ISP--<dsl>--Fritzbox with ddns--switch--nas(omv) and other clients
the fritzbox may route ipv4 and ipv6 ports to nas.
my nginx on omv-nas (default server) shoud be accessible via http and https only from internal net.
but it shoud serve webpages for some external access (via namebased servers?) too.
so we have different scenarios for different Sites.
These are possible urls against nginx
nas -> intern
nas.local -> intern
192.168.178.111 -> intern
my sqlmanager site -> intern
my bittorrent manager site -> intern
78.1.2.3 which may be my ip4 adress -> extern error page
my.ddns.host -> extern Site
2001:4312:.... which may be my ip6 adress -> extern error page
even blind port access without a hostname routed by fritzbox -> extern error page
the webdav page... -> intern & extern accessible
i have installed the omv-nginx plugin too and able to config additional namebased sites prepeared with letsencypt..
i think this config depends on the "default server" and i need to config omv site on a namebased server.
but there is no way to config that. the omv-site seem to be always the default, plus additionaly configured Sites in nginx plugin.
But i dont want to show omv loginpage on all not-namebase-fitting web requests from outside... i want to send those brutforce clients to a error page.
On apache i would config a default server with a error Page and 2 namebased servers as nas and my.ddns.host.
Does someone have a hint or a howto link?