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

質問

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 ?

役に立ちましたか?

解決

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top