Improved nginx.conf for Ruby On Rails

Thomas iamkenzo at
Mon Oct 6 23:33:36 MSD 2008

Who told you the ifs are bad practices? They are here to enable Nginx
to directly serve static files. By the way in your case, mongrel will
be serving static files, and this is really bad!

More information about the nginx mailing list