Absolute rather than relative times in expires directives

B.R. reallfqq-nginx at yahoo.fr
Sun Jan 24 13:43:59 UTC 2016


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 <nginx-forum at forum.nginx.org> 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
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160124/7d79c79d/attachment.html>


More information about the nginx mailing list