A
A
Alexey Denisov2019-12-05 16:42:54
Nginx
Alexey Denisov, 2019-12-05 16:42:54

How to enable ["HTTP_X_REAL_IP"] in nginx config?

Prompt on setting up, created two directories on the server, General and for the user.
I want to configure Two ip addresses, one for the user, the second for the administrator.
PS :
There are two ip addresses on the server,
if the HOST field contains One ip - we go to the user directory,
if the other one - we go to the admin panel.
Variable ["SERVER_ADDR"] - Contains the address to whom the remote PC is accessing, how can I now use it to address to a specific directory with the site?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
paran0id, 2019-12-06
@paran0id

https://nginx.org/en/docs/http/ngx_http_core_modul...
https://nginx.org/en/docs/http/ngx_http_realip_mod...
https://nginx.org/en/docs/http/ ngx_http_rewrite_mo...
what else can I say

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question