Welcome! Log In Create A New Profile

Advanced

Clever Redirect

Stephen Nelson-Smith
July 26, 2010 02:48AM
Hello,

I might be trying to do this entirely the wrong way, but here's the plan:

I have a large number of machines on a private VLAN, behind a
firewall, and without publicly routeable IP addresses. I want to be
able to hit a page (the same page) on each of them, from a known,
remote location. I don't wish to set up 90 different IPs on the
external firewall. What I thought I could do was something like this:

* Have nginx listening on a machine with an external IP address.
* Hit http://nginx-server.com/$servername
* Have nginx go to http://$servername/mypage.xml and return it to the
initial requestor

I have this working with a nasty cgi script, but it seems to me as if
this could be done better. Am I right? If so, how would I go about
it?

Thanks,

S.


--
Stephen Nelson-Smith
Technical Director
Atalanta Systems Ltd
www.atalanta-systems.com

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Clever Redirect

Stephen Nelson-Smith July 26, 2010 02:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 191
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready