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

enable relative url, eg hosting on http://myhost/strider/... #596

Open
hans-d opened this issue Oct 7, 2014 · 8 comments
Open

enable relative url, eg hosting on http://myhost/strider/... #596

hans-d opened this issue Oct 7, 2014 · 8 comments

Comments

@hans-d
Copy link

hans-d commented Oct 7, 2014

Currently all links are relative to the root.
Trying to set it up in a more restricted environment with one server (ip) for multiple webapps, where I do not control the dns/htts proxy/firewall/..., windows clients cannot modify the local hosts file (no admin rights), and everything not an ip goes always via an http proxy that cannot reach the server due to firewall restrictions.
I can only do redirect based on url prefixes, and would rather not have to modify the response body from the reverse proxy on that server.
I saw no setting (yet?) where I can control this.

@kfatehi
Copy link
Member

kfatehi commented Oct 7, 2014

In the current implementation of Strider there is no centralized URL generator like that of the likes of url_for or link_to (from Ruby on Rails) that you can modify for this purpose.

It could be implemented, especially considering that SERVER_NAME must be set anyway and hence this should be the prefix for all URLs.

My suggestion is reverse proxy strider on a subdomain instead of a path if possible.

@hans-d
Copy link
Author

hans-d commented Oct 7, 2014

I would prefer sibdomain as well, bit currently do not have this option in
thia environment.
Its mainly about the javascript, stylesheets etc. which currently link to
/. Some variable would be nice there.
Op 8 okt. 2014 00:16 schreef "Keyvan Fatehi" notifications@github.com:

In the current implementation of Strider there is no centralized URL
generator like that of the likes of url_for or link_to (from Ruby on Rails)
that you can modify for this purpose.

It could be implemented, especially considering that SERVER_NAME must be
set anyway and hence this should be the prefix for all URLs.

My suggestion is reverse proxy strider on a subdomain instead of a path if
possible.


Reply to this email directly or view it on GitHub
#596 (comment).

@kfatehi
Copy link
Member

kfatehi commented Oct 8, 2014

Unfortunately I don't have time to hack this out, but if you do, PR will be appreciated and accepted!

@hans-d
Copy link
Author

hans-d commented Oct 22, 2014

in progress.. currently somewhat lower prio due to issues with the websocket, need to sort that out first.

@knownasilya
Copy link
Member

@hans-d what issues with websockets?

@kfatehi
Copy link
Member

kfatehi commented Oct 28, 2014

@knownasilya reverse proxying websockets it still a real issue. I haven't got it to work with haproxy yet and I spent days trying. It's outside of strider's scope though. The best experience I've had with reverse proxying websockets has been with node-http-proxy

@kaue
Copy link
Contributor

kaue commented Mar 12, 2015

@keyvanfatehi Maybe my implementation of HTTP_PROXY env will help you?

@mauron85
Copy link

Only changing absolute paths to relative is sufficient to me. I can change baseUrl with proxy_redirect parameter of nginx.

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