A
A
Anton Ulanov2017-12-04 13:42:34
Nginx
Anton Ulanov, 2017-12-04 13:42:34

How to set up nginx proxy for IIS?

Good time of the day. the network has 3 servers with different domain names (domain-a.firm.ru, domain-b.firm.ru, domain-c.firm.ru). All 3 hang on port 80. All 3 must be posted on the Internet. The router does not allow you to register 3 ip in the same port with the same port, so it was decided to raise a proxy based on nginx.

proxy_pass http://мой ип:80;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

and I get a welcome from nginx or the page is not available.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2018-01-17
@kRosis

If relevant, try changing to
where
ip - corresponds to the external address of your server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question