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

nginx: auto-redirect to http:https://host/#/0 #181

Open
laclaro opened this issue Oct 31, 2018 · 0 comments
Open

nginx: auto-redirect to http:https://host/#/0 #181

laclaro opened this issue Oct 31, 2018 · 0 comments

Comments

@laclaro
Copy link

laclaro commented Oct 31, 2018

Hi,

probably it is not an issue with ympd but rather with my webserver nginx (see #77). However, maybe someone has some clue here.

If I browse to https://host/ympd, ympd does not load entirely. Only if I click "Queue" or anything, the page completes loading. So, why does ympd not redirect to the correct site? Does it without reverse proxy as setup by me?

Any suggestion to add a redirect for
https://host/ympd -> https://host/ympd/#

Current setup

    # ympd proxy settings for /ympd
    # https://github.com/notandy/ympd/issues/77
    location /ympd {
        rewrite            ^/ympd(.*)  /$1  break;
        proxy_redirect     http:https://ympd   /ympd/;
        proxy_set_header   Host $http_host;
        proxy_redirect     off;
        proxy_set_header   X-Real-IP $remote_addr;
        proxy_set_header   X-Scheme $scheme;
        proxy_pass         http:https://ympd$uri;
        proxy_http_version 1.1;
        proxy_set_header   Upgrade $http_upgrade;
        proxy_set_header   Connection "upgrade";
    }

    location ~ ^/(css|assets|fonts|js|player.html) {
        proxy_pass         http:https://ympd;
        proxy_http_version 1.1;
        proxy_set_header   Upgrade $http_upgrade;
        proxy_set_header   Connection "upgrade";
    }

Best,

Henning

@laclaro laclaro changed the title auto-redirect to http:https://host/#/0 nginx: auto-redirect to http:https://host/#/0 Oct 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant