D
D
Denis Sechin2018-02-28 13:23:56
linux
Denis Sechin, 2018-02-28 13:23:56

Redirect nginx to another resource?

Greetings! History: Clients of one site need to click on a button to get to another site that has strict visiting policies. Namely, this site gives access to entry only by IP. Taking into account the fact that users can receive more than 4 million IP addresses, you understand. You can redirect users to the desired site through nginx via Proxy_pass, in which case the IP resource will be the site from which the redirect is coming. But the problem is that if the user goes to another link, he will expose his real IP and, accordingly, he will not get access. Does anyone know if this task is actually possible? Those. you need to replace the real IP of clients with the IP of the site on which this reverse proxy is installed through a reverse proxy and redirect them to a closed resource.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg, 2018-02-28
@402d

no redirect. The rest https://ru.wikipedia.org/wiki/%D0%92%D0%B5%D0%B1-%...

K
key don, 2018-03-01
@keydon2

In pages, you can change the address to your own
nginx.org/en/docs/http/ngx_http_sub_module.html
As well as change headers, process redirects.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question