Would like to set up Scalatra to run on a box running nginx.
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 - http://blog.everythings-beta.com/?p=430
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.
How to I configure nginx to point to a Scalatra app?
Thanks!
Additional Info:
Ubuntu 12.04 is my operating system - so answers may either be specific to this, or anything that would generally work on Linux.
Bonus:
Throw in MongoDB as well - i.e. how to set up nginx with Scalatra and MongoDB - into your answer for extra points!!