A
A
Averyanalex2020-09-26 17:21:17
Nginx
Averyanalex, 2020-09-26 17:21:17

How to proxy the entire internet through nginx?

See. Suppose there is a certain server that has access to the Internet. And there is a computer that has access to this server. Let the server's IP be server.local. It is necessary that when requesting server.local/yandex.ru, Yandex opens through a proxy, so that it works (replace all links in HTML from yandex.ru with server.local/yandex.ru. I found an implementation for one site, and how to do it for the whole internet i.e. to open server.local/something.abc or server.local/123.123.123.123 and all the links change from links to the original site to links to the site on the server?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alex1478, 2020-09-26
@alex1478

Why do you need to implement based on nginx? According to your description, you need something like an anonymizer. Look for ready-made anonymizers in php.

D
Dimonchik, 2020-09-26
@dimonchik2013

LUA scripts
and then - 100% will not

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question