Nginx access from LAN

Tamás
Dec 8, 2022
Nginx

conf/domains.d/<project>.conf

server {
listen 127.0.0.1:80;
listen 192.168.0.20:80;
...

// local IP : local port - static IP can serve by router with MAC address
}

conf/nginx.conf

server {
listen 127.0.0.1;
listen *:80;
...
}

--

--