Absolute rather than relative times in expires directives
mdounin at mdounin.ru
Mon Feb 1 12:44:39 UTC 2016
On Mon, Feb 01, 2016 at 12:24:22AM -0500, rgrraj wrote:
> Thank you all for the suggestions and thoughts.
> I did double check the nginx version I am having and it is 1.9.2.
> root at ser2:~# nginx -V
> nginx version: nginx/1.9.2
> built by gcc 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
> configure arguments:
> --sbin-path=/usr/local/sbin/nginx --conf-path=/etc/nginx/nginx.conf
> root at ser2:~#
> but when I use the expires directive it shows invalid error same as before.
This likely means that nginx you are checking for "nginx -V" is
not the same as one that really works. This may happen if you
have more than one nginx binary (e.g., one in /usr/, and another
one in /usr/local), or you haven't restarted/upgraded running
nginx binary after upgrading nginx on disk, see here:
More information about the nginx