搭建的vscode 服务使用nginx代理后不能访问详解程序员
2023-06-13 09:19:55 时间
我的服务搭建完成后就只能进入密码验证界面,密码验证完成后就没有然后了
出现这个问题我首先想到的是nginx 的配置问题,验证了一下,如果不适用nginx代理访问就没有问题,说明我的猜想是正确的.
在网上搜索,查看到别人的配置和我的不一样:
参考配置:
IT虾米网
#user nobody; worker_processes 2; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid;我一般配置nginx 没有配置这几行,也不知道是干啥的.
#log_format main $remote_addr - $remote_user [$time_local] "$request" # $status $body_bytes_sent "$http_referer" # "$http_user_agent" "$http_x_forwarded_for"; #access_log logs/access.log main; sendfile on; #tcp_nopush on; client_max_body_size 200m; #gzip on; map $http_upgrade $connection_upgrade { default upgrade; close; upstream websocket { server localhost:8443; server { listen 80; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / { proxy_pass http://websocket; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade";
map $http_upgrade $connection_upgrade { default upgrade; close; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade";
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/1643.html
服务器部署程序员系统优化网站设置运维相关文章
- vscode支持java_vscode配置go环境
- vscode:shortcut: fold unfold
- 安装vscode的rust插件
- VSCode 快捷键大全
- vscode 在debug模式给被调试程序传递环境变量
- 【说站】java中如何配置vscode
- ubuntu18安装vscode_ubuntu安装vscode失败
- STARLIMS VSCode插件
- 浅谈vscode+react环境部署,运行第一个react框架
- 修改vscode launch.json, 实现在指定conda环境下debug
- 《安富莱嵌入式周报》第295期:世界杯球员和足球实时跟踪,开源手持矢量网络分析仪,自制柔性电容式传感器,IAR加强对VSCode支持、索尼早期PSX的光驱模拟器
- 【8】同步vscode配置和插件【导入导出】、再也不用担心换电脑重新安装插件了
- 【开发环境】Ubuntu 中使用 VSCode 开发 C/C++ ① ( 安装中文扩展 | 安装 C/C++ 扩展 )
- vsCode不显示.meta文件的方法
- Linux基础:Vscode远程连接Ubuntu方法及问题处理