-
Notifications
You must be signed in to change notification settings - Fork 280
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
HTTP path issue #79
Comments
I think you need this: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base In order to debug this, check in chrome dev tools what urls are actually being generated by your application. Proxy is stateless, he just proxies one url to another, it does not do anything besides that. |
Once I enter manderso.net:8080/prn, the server redirects to the root of the plexrequestsnet application. |
now trying a new docker image, from linuxserver/plexrequests. It says to add an environment variable of URL_BASE=/directory to the environment, which is what I've done. When I start the docker container, I can get to it using host:3000/prn, but when I use redbird, I get a 404 w/ manderso.net/prn. When i use manderso.net:3000/prn, the page comes up fine, css and all. Why wouldn't the specified port be passing? This is my current config: // var redbird = require('redbird')({ require('redbird') |
I found the culprit. usually when you create a static express server, the path is interpreted as a folder. Unfortunately, redbird does not support that as of now, so this does not work: proxy.register('localhost/app/', 'localhost:8080') I found my way around this problem by using subdomains. proxy.register('app.localhost', 'localhost:8080') Best, |
This may be a simple issue, but it's beyond me currently. I'm trying to setup redbird to reverse proxy my docker services, which are seen when I start redbird. However, the paths aren't respected when I try the URL. For example, when I type domain.ext:8080/prn, I'm redirected to domain.ext:8080/userlogin, which is the page that plexrequests automatically diverts a user to. If I change the URL to domain.ext:8080/prn/userlogin, I get the page, minus the CSS for it, and the log says "no valid route found for the given source". I think I need some sort of "baseurl" function, but don't know how to manage that in the config. My config is below. Any assistance you can offer would be appreciated.
`var proxy = require('redbird')({
port: 8080,
});
// var redbird = require('redbird')({
// port: 8080,
// });
require('redbird')
.docker(proxy)
.register("domain.net/prn", 'rogueosb/plexrequestsnet');
require('redbird')
.docker(proxy)
.register("domain.net/nzb", 'linuxserver/nzbget');
`
The text was updated successfully, but these errors were encountered: