Answer the question
In order to leave comments, you need to log in
How to make a directory in Nginx that will take data from another server?
Hello.
There are two sites for example "example.com" and "drive.example.com" which are located on different servers
. You need to implement the following: when there is a request for the directory "example.com/drive" the web server should return data from "drive.example.com " so that the URL doesn't change.
Is it possible to implement this and if so, how?
Answer the question
In order to leave comments, you need to log in
proxy_pass you need
location /drive {
proxy_pass http://drive.example.com;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question