santiaosanren

Results 1 comments of santiaosanren

可以先将/web/dist/index.html(需要先用npm把网页资源编译好才会有)中引用的css和js等全部改为相对路径,如href="/static/xxx"改为href="./static/xxx",然后使用nginx配置地址转发,我用的url前缀是/jrohywebssh/,配置如下,实测命令行和文件上传下载都没问题。 ` map $http_upgrade $connection_upgrade { default keep-alive; 'websocket' upgrade; } server { # 一些基本配置 ... # jrohy-webssh location /jrohywebssh/ { proxy_pass http://127.0.0.1:5032/; proxy_http_version 1.1; proxy_read_timeout 300; proxy_set_header Upgrade $http_upgrade;...