Open llimllib opened 10 years ago
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
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.
@dnissley I just tried that to no avail.
+1 for help on this issue!
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?