How can Webrick based (Non RoR, Sinatra) web application can be severed using Apache and Passenger?

StackOverflow https://stackoverflow.com/questions/19442885

  •  01-07-2022
  •  | 
  •  

Question

I have developed a small ruby web application using Webrick abstract servlet , File-handler and basic authentication. Now I want this application to be served using apache and passenger, what are the options available

  1. Do I need to remove Webrick dependent code and use sinatra or rack?

    0r

  2. Any other short cut is available like writing a rackup, etc ?

Was it helpful?

Solution

If you want your application WITH Webrick served by Apache you don't need Passenger use mod_proxy in Apache with ProxyPass* primitives

If you want Apache + Passenger you have to change Webrick against Rack or Passenger compatible, Merb, Rails, etc...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top