开发者

Rack (Sinatra) App pointing '/' to parent's root when deployed in subfolder

I have a bunch of small sinatra apps, and now I have to publish them under SSL HTTP as well.

I have https://secure.mydomain.com/ and I want to publish those apps in subdirectories:

  • /app1
  • /app2

I followed Phusion Passenger instructions here to publish in subdirs, but inside each application '/' points to root directory.

I don't want to change the code of all apps because, they are already working in non-ssl environment.

What do I need to change to make my application's '/' point to app's root, and not parent's root开发者_Go百科?


Looks like you just need the url helper method:

url '/' # => https://secure.mydomain.com/app1/
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜