Home > Backend Development > PHP Tutorial > 反向代理有关问题

反向代理有关问题

WBOY
Release: 2016-06-13 13:32:44
Original
997 people have browsed it

反向代理问题
A->客户机请求
B->代理服务器
C->真实服务器

请求:A->B->C,
返回:C->B->A

一般如何实现反向代理?
PHP实现还是http服务器有这个功能?比如nginx.
若是PHP的话一般用什么方法?file_get_contents?curl?


------解决方案--------------------
基本上成熟的http服务器都会有反向代理功能,比如nginx的proxy_pass,通常是nginx直接处理静态文件,动态php可以转给apache处理。如果需要做反向代理缓存可以尝试引入varnish,或者squid

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template