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
  •  | 
  •  

Frage

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 ?

War es hilfreich?

Lösung

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...

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top