title: Scalatra on nginx : how to set up?
body: <p>Would like to set up <strong>Scalatra</strong> to run on a box running <strong>nginx</strong>.</p>
  <p>Already have nginx set up correctly, and am able to serve static html pages, however, I now wish to point it to a Scalatra app. All of the documents available appear to assume that the server used will be Jetty: for example - <a href="http://blog.everythings-beta.com/?p=430" rel="nofollow noreferrer">http://blog.everythings-beta.com/?p=430</a></p>
  <p>I assume that I cannot simply point it to just the folder because the jetty configuration requires, in addition to this, a class name and a servlet mapping.</p>
  <p>How to I <strong>configure nginx</strong> to point to a <strong>Scalatra app</strong>?</p>
  <p>Thanks!</p>
  <hr />
  <h3>Additional Info:</h3>
  <p>Ubuntu 12.04 is my operating system - so answers may either be specific to this, or anything that would generally work on <strong>Linux</strong>.</p>
  <hr />
  <h3>Bonus:</h3>
  <p>Throw in <strong>MongoDB</strong> as well - i.e. how to set up nginx with Scalatra and MongoDB - into your answer for extra points!!</p>