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

Subway can't run anywhere but the root of a domain #310

Open
llimllib opened this issue Feb 27, 2014 · 3 comments
Open

Subway can't run anywhere but the root of a domain #310

llimllib opened this issue Feb 27, 2014 · 3 comments

Comments

@llimllib
Copy link

I setup up a reverse proxy to proxy http://mydomain/subway/ to http://localhost:3000, where subway is running; I'm able to request the dir successfully, but all the resources subway requests are unavailable because it's requesting them at root, rather than at /subway/.

i.e. the app should be requesting /subway/socket.io (which works when I test it) , but it's requesting /socket.io .

Ideally, the app would either notice its own URL or allow me to set a configuration option telling it it's at /subway/. (A django app I have running the same way uses the FORCE_SCRIPT_NAME configuration option for this purpose)

Or, is this possible, and I'm missing something?

@jancborchardt
Copy link

I got the same problem. Trying to run Subway out of a subdirectory, and it doesn’t work.

The message looks like it was successful though:

  info  - socket.io started
Subway started on port 3000

@dnissley
Copy link

dnissley commented Apr 3, 2014

My guess is that the page needs a <base href="/subway/"> element in the head, so all relative paths will be appended to that value.

@LouisKottmann
Copy link

@dnissley I just tried that to no avail.

+1 for help on this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants