You need a block that will cause nginx to serve static files directly. Something like location ~* ^.+\.(css|js)$ { root /var/www/foo; access_log off; expires max; break; } -- Posted via http://www.ruby-forum.com/.