Now I am pretty new to Sinatra/Ruby/Apache but have inherited a Sinatra application to deploy.
Currently Apache is set up to run from a document root (httpdocs) and I need to run a ruby application underneath a folder subdirectory such as: /httpdocs/webapp
What do I need to do to get this up and running under a subdirectory?
This link might be helpful, it explains how to deploy a Sinatra app with Apache using Passenger (mod_rack):
Deploying a Sinatra App with Apache and Phusion Passenger
The part of particular interest to you is the
RackBaseURIoption in the virtual host configuration. The official documentation is available here:Phusion Passenger users guide – Deploying Rack to Sub URI