Nginx Expries 30d;

Vahid Mirjamali lists at
Sun Mar 8 10:09:08 MSK 2009

Hi I'm trying to get my expires config to work with my site, but for it
to work i need to find a way to exclude the folder forums from it's
effects since it has it's own expired set within it's software.

Any body know the code? At the moment it's like this (just the expires
part of it):

f ($host != '' ) {
rewrite ^/(.*)$$1 permanent;

location ~* i.+\.(ico|css|js|gif|jpg|png|bmp)$
    expires      30d;

Anyway to make it includes the /forums/ folder ?

Posted via

More information about the nginx mailing list