Setting expires header results in 404 ?

RoastedPeanut nginx-forum at
Sat Apr 3 02:45:25 MSD 2010

location ~* \.(ico|css|js|gif|jpg|png)$ {
			expires 7d;
If I add this to my server conf it will cause all those requests to fail with a 404..I'm feeling silly for missing this, and I know it's probably very easy to fix...but how? :)

Posted at Nginx Forum:,70739,70739#msg-70739

More information about the nginx mailing list