A
A
Alghazanth2016-09-22 22:52:33
Nginx
Alghazanth, 2016-09-22 22:52:33

How to configure nginx in proxy mode?

How to set up a proxy rule for the example.com domain so that the request is proxied to one server, and for example.com/dir to another, and the request is explicitly executed to the site root on this server, and not to the dir directory?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zooks, 2016-09-22
@zooks

nginx.org/ru/docs/beginners_guide.html#static

N
Nurlan, 2016-09-27
@daager

nginx.org/ru/docs/http/ngx_http_proxy_module.html#...

location /dir {
    proxy_pass http://123.234.123.234/;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question