help with location and order

Life Life lists at ruby-forum.com
Fri Jun 11 13:38:27 MSD 2010


I have this config, I need to use jpg in /data/abc/files/ but when I
browse it nginx will use file jpg in /var/www/images (second condition),
how to fix it?

root /var/www/images;

location = /abc/files/ {
        alias /data/abc/files/;
        break;
}

location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|swf|flv)$ {
        access_log  off;
        expires     1d;
}
-- 
Posted via http://www.ruby-forum.com/.



More information about the nginx mailing list