Skip to content

redirection to localhost #475

Closed Answered by gkrwns7566
gkrwns7566 asked this question in Q&A
Apr 20, 2023 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

solved with adding 1 more option in nginx

    location ~ ^/th/(.*)$ {
        proxy_pass http://127.0.0.1:5000/th/$1?${args};
        proxy_redirect off;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Cookie $http_cookie;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host; 
    }

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@gkrwns7566
Comment options

@aminalaee
Comment options

@gkrwns7566
Comment options

@gkrwns7566
Comment options

Answer selected by gkrwns7566
@aminalaee
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants