error: [Sat Jul 26 16:06:39 2003] [error] [client 127.0.0.1] internal error: bad expires code: D:/Program Files/Apache Group/Apache2/manual/mod/mod_expires.html.en, referer: http://www.our-sky.com- /manual/mod/ config: ExpiresActive On ExpiresByType image/gif "access plus 5 minutes" ExpiresByType image/jpeg "access plus 5 minutes" u may say i have to set ExpiresDefault however, it's not possible for us to "DeActive" those files which hadn't been set by "ExpiresByType" we'd like to ExpiresByType while other file don't need Expires header yes, i know one can use <Location> on files we need expres, and not on file we don't need, but it's more difficult
The problem seems to be that expiresdefault is set to "" and not null as the default value when creating a new configuration block. That means that the test in line 514 of modules/metadata/mod_expires.c thinks expiry is set, when it is not. Either expiresdefault should be set to NULL or the test should check for an empty expire (add "&& expiry[0]" to if statement).
*** This bug has been marked as a duplicate of 23748 ***