Nginx reverse proxy WITHOUT 80 and 443 port #6177
-
Beta Was this translation helpful? Give feedback.
Answered by
code-asher
May 1, 2023
Replies: 1 comment 5 replies
-
|
In the console what code are you getting for the web socket? Is it a 401? If so could you run with |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


To provide some more details, when
originis set it must be a valid URL and must match thehostheader (to prevent some cross-origin attacks).So if the origin is
http://test.domain.comthen the host must be exactlytest.domain.com. Or as another example if the origin ishttps://test.domain.com:1234then the host must be exactlytest.domain.com:1234. If the check fails then you getforbidden.Usually
proxy_set_header Host $host;is sufficient but you might needproxy_set_header Host $http_host;instead.