Answer the question
In order to leave comments, you need to log in
How to pass download link to ngnix?
The bottom line is that there is a server on VESTACP on it 2 domains site.ru and site2.ru It is
necessary to make site.ru/load.php?path=bran.png redirected to site2.ru/files/bran.png via header('X- Accel-Redirect: '.$file);
How should I write Location so that the redirect takes the correct link from the domain site2.ru/files/bran.png ?
And if the file does not exist, then a 404 error.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question