Skip to content

Commit

Permalink
添加nginx反向代理中http3配置说明 (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
DLYSY authored May 26, 2024
1 parent 61128d4 commit 64ad22c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/zh/guide/install/reverse-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ location / {
}
```

如果需要使用HTTP/3,需要将对应`HOST`行修改为:

```conf
proxy_set_header Host $host:$server_port;
```

这样修改后的配置同时也可以兼容HTTP/2及更低版本的请求。

:::warning
如果使用宝塔面板,请务必删除以下默认配置

Expand Down Expand Up @@ -113,4 +121,4 @@ example.com {

![bt_reverse_proxy](/img/guide/reverse_proxy/bt_reverse_proxy.png)

> 如需申请`SSL`证书,可先在`SSL`选项中申请证书,然后在设置反向代理。或者设置反向代理之后,关闭反向代理功能,申请`SSL`证书后再次开启代理。
> 如需申请`SSL`证书,可先在`SSL`选项中申请证书,然后在设置反向代理。或者设置反向代理之后,关闭反向代理功能,申请`SSL`证书后再次开启代理。

0 comments on commit 64ad22c

Please sign in to comment.