After installation, the jumpserver selects a custom port, and the HTTP port 80 is changed to 88. After forwarding through nginx, remember to set the upgrade of nginx, otherwise it will prompt: connect websocket server error
Nginx is configured as follows:
##Jump
server {
listen 80;
server_name jump.xxxxxx.cn;
location/{
proxy_pass http://127.0.0.1:88;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
This will not prompt an error
Read More:
- [Nginx] Configure nginx to support websocket to solve the problem of returning 400 error
- [Solved] Websocket Error: WebSocket is already in CLOSING or CLOSED state
- Nginx Container Error: nginx: [emerg] mkdir() “/var/cache/nginx/client_temp“ failed (13: Permission denied)
- [Solved] Playbook Start Nginx Error: Unable to start service nginx: Job for nginx.service fd with error code
- [Solved] Vscode Connect to the remote server error: permission denied (public key)
- [Solved] Docker Start nginx error: driver failed programming external connectivity on endpoint nginx
- [Solved] Error:couldn‘t connect to server 127.0.0.1:27017, connection attempt failed: SocketException: …
- Nginx: How to Use Error_Page
- [Solved] PostgreSQL Error: Could not connect to server: no such file or directory
- Gitlab nginx wont start to work. [down: nginx: 1s, normally up, want up; run: log: (pid 20128)xxx]
- [Solved] PostgreSQL Remote Access Error: could not connect to server
- Websocket: How to Fix Error Read Econnreset
- [GO]Solve request origin not allowed by Upgrader.CheckOrigin websocket cross-domain
- How to Solve Error: could not read ok from ADB Server.failed to start daemon error: cannot connect to daemon
- Mac IDEA Connect SVN Error: E230001: Server SSL certificate verification failed: certificate issued
- [Solved] Failed to connect to server(code:1006)
- Mybatis Connect Database Error: Error querying database. Cause: java.sql.SQLException: The server time zone value..
- [Solved] error when starting dev server:Error: listen EACCES: permission denied 0.0.0.0:80 at Server.set
- [Solved] Error from server (InternalError): an error on the server (““) has prevented the request from suc
- [Solved] Nginx Error: 400 Request Header Or Cookie Too Large