cwninja/geminabox — pull request #63 by ciaranarcher (2012-04-19 14:07:40+00:00)
Title: Using Relative URLs

We use geminabox to host our internal gems in a JRuby environment, using http://torquebox.org. Torquebox allows multiple JRuby apps to be run in the same Java instance, each at at particular context root, e.g.

```
my-app1.domain.com -> http://host/my-app1-context/
my-app2.domain.com -> http://host/my-app2-context/
gemserver.domain.com -> http://host/gemserver/
```

Incoming requests are rewritten to the correct context. Because of this, use of absolute URLs can be problematic, leading to broken links etc. The solution is to use relative URLs for Sinatra routes and static content. So that's what I've changed.

Keep up the good work!