2024/8/2

nginx刷新404

配置伪静态,解决nginx刷新404 location / { index index.php index.html index.htm default.php default.htm default.html; if (!-e $request_filename) { rewrite ^(.*…

  • nginx
  • 2024/8/2
  • 421
  • 2023/4/20

    nginx 代理内网mysql

    nginx主配置文件最外层增加如下配置 #mysql代理 stream { log_format proxy '$remote_addr [$time_local] ' '$protocol $status $bytes_sent $bytes_received ' …

  • mysql nginx
  • 2023/4/20
  • 628
  • 2023/4/7

    nginx 反向代理 502 Bad Gateway

    应该是SSL证书握手的时候,不匹配,造成握手失败 反向代理配置文件 location /{ #添加 proxy_ssl_server_name on; proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2; }

  • nginx 运维
  • 2023/4/7
  • 608
  • 2022/11/1

    nginx 反向代理 websocket连接失败

    在反向代理中增加如下配置 关键配置 start proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; 关键配置 end

  • nginx springboot websocket
  • 2022/11/1
  • 650
  • 2022/6/29

    nginx 转发wss连接失败 springboot wss连接失败 jeecg-boot连接失败

    location ^~ / { proxy_pass              http://127.0.0.1:8081/; proxy_set_header     &n…

  • jeecgboot nginx springboot
  • 2022/6/29
  • 637
  • 2021/11/30

    nginx正则

    1、正则表达式匹配     ~ 区分大小写匹配     ~* 不区分大小写匹配     !~和!~*分别为区分大小写不匹配及不区分大小写不匹配    &nbs…

  • nginx
  • 2021/11/30
  • 912
  • 2021/10/25

    apline安装nginx 启动报错​nginx: [error] open() “/run/nginx/nginx.pid” failed (2: No such file or directory)

    命令行输入 nginx即可生成nginx.pid

  • docker lnmp nginx
  • 2021/10/25
  • 844