Answer the question
In order to leave comments, you need to log in
How, if the picture has a GET parameter, to give another one?
Sorry for the noob wording, but I don't know nginx at all.
The bottom line - there are pictures, a lot, an example:
/upload/000/u1/7/1/1.jpg?moderation=on
/upload/001/u2/5/4/25.jpg
/upload/002/u88/2/2/34.jpg?moderation=on
/upload/system/no-avatar.jpg
location ~* ^.+.(jpg|jpeg|gif|png|svg|)$ {
if ($arg_moderation) {
rewrite /upload/system/no-avatar.jpg break;
}
}
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