A
A
Arthur2020-12-27 17:35:02
Nginx
Arthur, 2020-12-27 17:35:02

How to bind urls to different servers?

Hello everyone

There is a domain, let's say domain.com, which is tied to a regular shared hosting
A vds has been added, on which a separate section of the site is located

There is a need to bind one of the site paths to the vds server, i.e. what lies on the vds, and all other ways, looked like they look at the usual shared hosting

How to set it up correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2020-12-27
@cloudz

And what's the problem? Start a separate location /api, inside which you configure the desired behavior, in the general case - proxy_passup to your VDS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question