Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

I have multiple sites hosted, but wanted some only accessable via LAN. This is how I set it up, note this requires internal DNS to point directly to the internal IP address.

cat << 'EOF' >/etc/nginx/private.conf
allow 192.168.1.0/24;
deny all;
EOF

site.conf:

include /etc/nginx/private.conf;

https://stackoverflow.com/questions/51801772/allowing-only-local-network-access-in-nginx/61316412#61316412

  • No labels