Nginx expires directive with a variable
Solution 1:
You're using an obsolete version of nginx on an obsolete Linux distribution. Both need to be upgraded ASAP.
In particular:
- Debian 8 is past end of LTS support. It receives no further updates, not even security updates. It is an extreme risk to have this system connected to the Internet.
- As the documentation states, using a variable in the nginx
expires
directive requires at least version 1.7.9.