Reverse proxy problems

Source: Internet
Author: User
Reverse Proxy question A-& gt; client request B-& gt; proxy server C-& gt; real server request: A-& gt; B-& gt; C, return: c-& gt; B-& gt; how does A implement reverse proxy? Does PHP or http server have this function? For example, nginx. if it is PHP, what is the common method? File_get_contents? Curl? ------ Solution ------------------- reverse proxy problem
A-> client request
B-> proxy server
C-> Real servers

Request: A-> B-> C,
Return value: C-> B->

How do I implement reverse proxy?
Does PHP or http server have this function? For example, nginx.
What is the common method for PHP? File_get_contents? Curl?


------ Solution --------------------
Basically, mature http servers have reverse proxy functions, such as nginx's proxy_pass, which usually processes static files directly by nginx. dynamic php can be transferred to apache for processing. If you need reverse proxy caching, you can try to introduce varnish or squid

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.