Currently my Ubuntu server runs RubyOnRails applications with Apache2 + Passenger.
Now I need to deploy a Sinatra (Plain Ruby app) which needs to run on Thin instead of Passenger.
I'm familiar with configuring Apache and would like to continue in that manner, with the VirtualHosts (in sites-available) etc..
How can I "route" a VirtualHost in Apache to a Thin server?
Best Answer
You'll be configuring Apache as a "reverse proxy" - that search term will point you to a wealth of information regarding the configuration, but here's an example that should get you most of the way to the deployment you're looking for.
If you'll be using a different hostname and different
<VirtualHost>
, then you can do something like this:An alternative configuration that may be of use to you would be to just make it a subdirectory of an existing
<VirualHost>
; you'd add a<Location>
block to your existing config: