http://nginx.org/en/CHANGES: Changes with nginx 1.9.7 17 Nov 2015 ... *) Bugfix: the "expires" directive might not work when using variables.
Using the latest version of the branch​ might solve problems... --- *B. R.* On Sun, Jan 24, 2016 at 8:21 AM, rgrraj <[email protected]> wrote: > Hi Francis > > The same works like a charm in 1.9.6 but not in 1.9.2. The error log shows > the follow, > > "[emerg] 6151#0: "expires" directive invalid value in" respective sites > enabled file. > > And our configuration is just as follows, > ## in nginx.conf > map $time_iso8601 $expiresc { > default "3h"; > ~T22 "@00h00"; > ~T23 "@00h00"; > } > > ##in sites enabled file, > location /path/to/files/ { > expires $expiresc; > } > > > doesnt allows to restart nginx and fails with the above error in nginx > error > log. > > Any thoughts ?? > > Thanks > Govind > > Posted at Nginx Forum: > https://forum.nginx.org/read.php?2,115406,264082#msg-264082 > > _______________________________________________ > nginx mailing list > [email protected] > http://mailman.nginx.org/mailman/listinfo/nginx >
_______________________________________________ nginx mailing list [email protected] http://mailman.nginx.org/mailman/listinfo/nginx
