@JonathanLee
the nginx GUI web server doesn't use "/usr/local/www/nginx-dist" or "/usr/local/www/nginx" which links to the first.
It still works, though : https://pfsense.yourlocaldoimain.tld/nginx :
069a610b-39ff-47e0-9e77-2b5217541b1a-image.png
These were the initial html files that come with a basic install of ngins, like apache2.
A simple html index file to demonstrate that the server works.
These files have been put out of the way 'somewhere'.
The nginx config file is here : /var/etc/nginx-webConfigurator.conf
You'll find this :
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
so it's actually simple to do this :
server {
listen 192.168.1.1:443 ssl http2;
listen [::]:443 ssl http2;
(maybe you should also add the IPv6 of your LAN)
to make it listening only on LAN (nad localhost) and no where else.
Do not edit this config file.
Edit the file that edits the config file : /etc/inc/system.inc, look for the function system_generate_nginx_config(), you'll get the picture 😊