V
V
Vladimir Revyakin2017-02-08 15:25:04
Nginx
Vladimir Revyakin, 2017-02-08 15:25:04

Proxy_pass from one domain to another to a specific folder?

Good day, there is an example.com domain from which you need to proxy using nginx to example.ru to the /home/pages/ folder, in the end, the path would look like: https://example.ru/home/pages/ .
Tell me how such a location, proxy_pass should look like?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry MiksIr, 2017-02-08
@jonimuesli

location / {
  return 403;
}
location /home/pages/ {
  proxy_pass http://example.ru;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question