Absolute rather than relative times in expires directives
rgrraj
nginx-forum at forum.nginx.org
Sun Jan 24 07:21:01 UTC 2016
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
More information about the nginx
mailing list