Answer the question
In order to leave comments, you need to log in
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
location / {
return 403;
}
location /home/pages/ {
proxy_pass http://example.ru;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question