Answer the question
In order to leave comments, you need to log in
How to correctly change paths in nginx to statics?
Good day!
Please help in solving the following problem: It is
required to solve the problem in such a way that the statics on the site look like /storage/2b52c5ae/QIEARQ8ieqGDfdGa.jpg
, where 2b52c5ae - 4 folders, divided by 2 characters, example 2b/52/c5/ae :
/home/evgeny/project/storage/app/images/2b/52/c5/ae/QIEARQ8ieqGDfdGa.jpg
location /storage {
root /home/evgeny/project/storage/app/images;
}
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