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

Web Interface Behind Proxies #29

Open
mnaberez opened this issue Jul 15, 2011 · 10 comments
Open

Web Interface Behind Proxies #29

mnaberez opened this issue Jul 15, 2011 · 10 comments
Labels

Comments

@mnaberez
Copy link
Member

There should be some way to configure a URL prefix for when the web interface is behind a proxy. This has been requested several times on the mailing list.

Related to issue #28

@mmoya
Copy link

mmoya commented Nov 12, 2013

Hello @mnaberez , is there any update on this?

@mnaberez
Copy link
Member Author

@mmoya Looks like it is still on the TODO.txt list. The web interface in general could use some work. Patches would be welcome.

@mnaberez
Copy link
Member Author

Reopening since this has come up again. Related: #495

@calvin
Copy link

calvin commented Mar 7, 2015

I'm updating the code to support this. I know that there are other implementations (#495 and #28) but what I'm proposing is similar to #372. Once I'm done, I'll create a PR.

@yarikdot
Copy link

yarikdot commented Nov 1, 2015

btw: This nginx configuration worsk for me fine:

location /supervisor {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    # hack the host https://github.com/Supervisor/supervisor/issues/251
    proxy_set_header Host $http_host/supervisor/index.html;
    proxy_redirect off;
    rewrite ^/supervisor(.*)$ /$1 break;
    proxy_pass http://127.0.0.1:8999/;
}

@archon810
Copy link

@yarikdot This isn't working for me, at least on v3.3.3, because it's trying to load http://MY_HOST/stylesheets/supervisor.css which is a 404. But even http://MY_HOST/supervisor/stylesheets/supervisor.css is a 404 too.

@bfx
Copy link

bfx commented Feb 21, 2018

@yarikdot works for me on v3.2, but not the "tail -f" view of the logs

Any progress on pull request: #593 ?

@potoo0
Copy link

potoo0 commented Apr 10, 2019

base_path option have been discard ? #593: Introduce base_path for web interface, I want use nginx proxy web monitor to sub-path, anything could help?
Thanks.

@mwansinck
Copy link

Love to see a URL prefix being added, any update on this?
PR #593 seems OK to me.

@rosenhagen
Copy link

One detail that seems to add to the problem is the missing path in the "Location" header. Maybe there would be no URL prefix necessary in most cases if one was present?

For example, this is a location header that I would typically get:

Location: http://supervisor:9001?message=…

Please note: no path or "/" present. It's a perfectly valid URL, but in my case the missing slash messes with my proxying in Apache, which should be able to modify the URL out of the box.

To get this working I had to use a rather unusal config:

ProxyPass /supervisor/ http://127.0.0.1:9001/
ProxyPassReverse /supervisor/ http://127.0.0.1:9001

… e.g. trailing sash on request, no slash on responses. I'm not sure if the missing path is a bug, it seems at least unusual and think one should be added.

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

No branches or pull requests

9 participants