-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Can't connect when behind Nginx proxy #96
Comments
Hi MasterKTO, Can you show me your Nginx configuration? |
There you go:
|
I think the error comes from your
|
OK, turns out that the |
I guess you checked http requests version on client side not on server side. By default Nginx uses version 1.0 for |
Hey huashengdun.
First, thanks for this wonderful app. It comes very handy.
I run into the following problem, though:
webssh works correctly when I connect directly to it (I point my browser to server:8000 in my following example), be it with SSL enabled or not.
But if I try to connect when webssh runs behind an Nginx proxy (as detailed in the README), I can never get to a shell... I click "Connect", the site hangs for a second and just goes idle again.
Hereafter is the command I used to run webssh along with the related debug logs.
As you can see, the connection to the websocket is dropped as soon as the SSH connection is established.
I should add that sometimes, the client fails to fetch some resources (404 on
GET /static/css/bootstrap.min.css.map
for instance). This never happens while connecting directly to webssh.I guess I'm missing something here, any assistance would be very much appreciated. :)
Thanks.
The text was updated successfully, but these errors were encountered: