I’ve been looking over lots of nginx configurations and the way to serve
static files differed slightly, so which is the correct way as i’ve seen
the following syntax
Read up on regexs, these are both similar in that they match urls ending
in
(jpg, jpeg etc.)
However there is one tiny difference, the first one requires there be a
dot
before the extension, whereas the second doesn’t, eg. it should match
“/somethingjpg” whereas the first would only match “/something.jpg”
The second one looks wrong, it probably wanted to be location ~*
^.+.(jpg|jpeg|gif|css|png|js|ico)$ {