Accessing local servers using local IP as sufix to public IP
November 08, 2019 02:04PM
I'm wondering if it is possible to setup NGIX in a way, where I could get access to any port (ex: 80) for any VM or server inside local network by using it's IP as part of a URL.

So let's say if my public IP is 111.111.111.111 and I have a webserver at home with a local ip 192.168.1.5, I could access the port 80 by typing:

http://111.111.111.111/192.168.1.5
or
http://111.111.111.111/192_168_1_5
Re: Accessing local servers using local IP as sufix to public IP
November 08, 2019 04:10PM
Use a local DNS (or hosts file).

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Accessing local servers using local IP as sufix to public IP
November 16, 2019 04:32AM
What is keeping you from having a location with a pattern parsing {localip}[/{localpath}] and proxy that to http://{localip}/{localpath}?

If your NGINX is reachable on its public IP address, but actually runs in a private IP address range inside your local network, you only have to make sure that nobody has the glorious idea of specifying the NGINX local IP address as a proxy destination.

--j.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 228
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready