Зворотний проксі
A reverse proxy is a server that sits in front of one or more web servers, intercepting requests from clients and forwarding them to the appropriate backend server, thereby enhancing security, perform...
A reverse proxy is a server that sits in front of one or more web servers, intercepting requests from clients. Instead of clients connecting directly to the web server, they connect to the reverse proxy. The reverse proxy then forwards the client's request to the appropriate web server. The response from the web server is sent back to the reverse proxy, which then forwards it to the client. This setup provides several benefits. Firstly, it enhances security by hiding the identity and characteristics of the origin web servers, acting as a shield against direct attacks. Secondly, it can improve performance through caching of static content, load balancing requests across multiple backend servers to prevent any single server from becoming overloaded, and SSL encryption/decryption, offloading this computationally intensive task from the web servers. Thirdly, it facilitates easier management of web applications, allowing for centralized logging, URL rewriting, and the implementation of a single point of access for multiple services. Reverse proxies are essential components in modern web infrastructure, contributing to scalability, security, and reliability.
graph LR
Center["Зворотний проксі"]:::main
Rel_nginx["nginx"]:::related -.-> Center
click Rel_nginx "/terms/nginx"
Rel_api_gateway["api-gateway"]:::related -.-> Center
click Rel_api_gateway "/terms/api-gateway"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧠 Перевірка знань
🧒 Простими словами
Зворотний проксі — це як рецепція у великому офісному центрі. Відвідувач (клієнт) розмовляє тільки з адміністратором на вході, а той вже каже, в який кабінет (сервер) йти, або сам видає потрібну довідку.
🤓 Expert Deep Dive
Nginx — найвідоміший приклад. Використовується для SSL-термінації, балансування та приховування реальних адрес серверів.