Answer the question
In order to leave comments, you need to log in
Serving static with NGINX at specific addresses?
There is an address: /img/t1/123456/f.jpg/thumb_img
The config for statics NGINX
looks like this:
location ~* \.(jpg|jpeg|gif|png|ico|css|js)/thumb_img$ {
root /home/user/dev/img/;
}
NGINX
And writes the following error
in the logs :[error] 15228#0: *1 open() "/home/user/dev/img/img/t1/123456/f.jpg/thumb_img"
failed (2: No such file or directory),
client: 127.0.0.1, server: site.dev,
request: "GET /img/t1/123456/f.jpg/thumb_img HTTP/1.1", host: "site.dev"
/home/user/dev/img/
? nginx -v
nginx version: nginx/1.4.6 (Ubuntu)
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