Files
nexus/wiki/concepts/反向代理.md
2026-04-17 08:38:12 +08:00

28 lines
886 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "反向代理"
type: concept
tags: [networking, proxy, web-server]
date: 2026-04-17
---
## Definition
反向代理Reverse Proxy是一种服务器架构模式代理服务器接收外部客户端请求并根据配置将请求转发到一个或多个内部服务器然后将内部服务器的响应返回给客户端。
## Key Properties
- 位于客户端和真实服务器之间
- 隐藏真实服务器的真实 IP 和端口
- 可实现负载均衡、SSL 终止、缓存等功能
- 常见反向代理软件Nginx、Caddy、Traefik、Apache HTTP Server
## Use Cases
- 将外部请求转发到内网服务
- HTTPS/SSL 终止
- 负载均衡
- 静态资源缓存
- 统一入口管理多服务
## Connections
- [[反向代理]] ← implemented_by ← [[Caddy]]
- [[反向代理]] ← implemented_by ← Nginx
- [[反向代理]] → enables ← [[内网穿透]]