I
I
Ivan2019-10-19 19:59:29
Nginx
Ivan, 2019-10-19 19:59:29

How to distribute files via CDN without changing addresses?

Hello! Please tell me how you can distribute files through a CDN that hangs on a subdomain (for example, cdn.site.ru) but in such a way that the addresses do not change. Tobish so that everyone can see site.ru.
Is it possible?
Tried to do so, but did not work. In nginx settings I wrote down
location /uploads {
proxy_pass https://cdn.site.ru;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2019-10-19
@ky0

Put on the site in the url cdn.site.ru, why is proxying here? There are probably several A-records there, and even DNS return, depending on the geographic location of the user.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question