Answer the question
In order to leave comments, you need to log in
How to set an alias for folders in nginx?
Previously, on the site, all images, pdf, etc. were in the /uploads/posts/ folder (inside which the structure also contains folders with files)
Now the same set is located at /assets/uploads/
What to write in nginx so that the content is available and so and so?
location /uploads/posts/ {
alias /assets/uploads/;
}
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