我的零经验IT编程

Empty

首页 联系方式

2023年12月

tide写的http服务如何被反向代理

  • 作者: lyt
  • 时间: 2023-12-27
  • 分类: Rust
  • 评论
  location / {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host            $host;
    proxy_set_header X-Real-IP       $remote_addr;
    # https://github.com/http-rs/tide/issues/458#issuecomment-619243201
    proxy_http_version 1.1;

    proxy_pass http://dotdotvote;
  }

最重要是那一行proxy_http_version 1.1;并且proxy_pass 放到最后一行

最新文章

  • 浏览器多语言
  • Rust的数据锁
  • Python好用的软件源
  • Rust多态和继承
  • 生成压缩文件细节(要将目录也加进去)
  • cocos creator 3.8 uuid解码
  • tide写的http服务如何被反向代理
  • Rust在Linux编辑带上静态库(运行时不再缺库)
  • docker 开启SSH
  • 宏

最近回复

分类

  • 默认分类
  • GO
  • Creator
  • Flutter
  • 安卓
    • Kotlin
  • Rust

归档

  • July 2024
  • April 2024
  • February 2024
  • January 2024
  • December 2023
  • September 2023
  • August 2023
  • May 2023
  • January 2023
  • December 2022
  • November 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • March 2022
  • February 2022
  • January 2022
  • October 2021
  • September 2021
  • July 2021
  • June 2021
  • May 2021
  • October 2020
  • August 2020
  • June 2020

其它

  • 登录
  • 文章 RSS
  • 评论 RSS
  • Typecho
© 2025 我的零经验IT编程. 由 Typecho 强力驱动. 粤ICP备20051054号-1