Nginx Expries 30d;

Vahid Mirjamali lists at ruby-forum.com
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 != 'www.animecrazy.net' ) {
rewrite ^/(.*)$ http://www.animecrazy.net/$1 permanent;
}

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


Anyway to make it includes the /forums/ folder ?

Thanks,
PSPc
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list