Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed to allow for sub-path in url #8

Closed
wants to merge 2 commits into from

Conversation

carolinebeauchamp
Copy link

Added a bit of extra knowledge in so that the urls are adjusted to have the full original path in, rather than assuming its hosted in /

@tomlea
Copy link
Member

tomlea commented Dec 6, 2010

Like it.
Is there a rack version of RAILS_RELATIVE_URL_ROOT that works in rails too?

@tomlea
Copy link
Member

tomlea commented Jan 31, 2011

Close as stale.

@klauern
Copy link

klauern commented Mar 26, 2011

I think ENV['SCRIPT_NAME'] is what Rack would consider the equivalent:

http://rack.rubyforge.org/doc/files/SPEC.html

I am using Torquebox to deploy alot of little Rack apps. I was going to try to deploy geminabox, but since I would expect it to sit on some relative context like /gems or /geminabox I can't use it.

@klauern
Copy link

klauern commented Mar 26, 2011

Actually, I think it's env['SCRIPT_NAME'] now that I've played a bit with it.

@tomlea tomlea reopened this Apr 24, 2011
@tomlea
Copy link
Member

tomlea commented Apr 24, 2011

Hi, I'd love to get this kind of setup supported, but I don't use anything like your setup, so I couldn't verify the behaviour [1].

I'd welcome a patch for this.

[1] Also, when it's not my itch, I don't tend to do my best scratching ;)

@rohitn
Copy link

rohitn commented May 26, 2011

Ran into the same issue deploying on passenger/nginx. The symbolic link solution did not work. http://www.modrails.com/documentation/Users%20guide%20Nginx.html#deploying_rack_to_sub_uri

@tomlea
Copy link
Member

tomlea commented Jun 23, 2011

Looks like a popular request, can someone with a vested interest update @chrischillibean's patch?

@docwhat docwhat mentioned this pull request Nov 3, 2011
tomlea added a commit that referenced this pull request Dec 14, 2011
This adds support to allow hosting within an existing
site: http://example.com/geminabox/

Based on the work on issue #8 by chrischillibean
@tomlea
Copy link
Member

tomlea commented Dec 14, 2011

Resolved in #37.

@tomlea tomlea closed this Dec 14, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants