What is reverse proxy?

11

When I was setting PHP FPM (PHP module that allows the use of FastCGI), I ran into the Reverse Proxy when I was browsing some tutorials on how to configure it in Apache 2.

Example taken from this site , where you are taught to install the module mod_proxy_fcgi :

ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/mysite/$1

But what would a Reverse Proxy look like? I've heard that term before, but I do not understand what it's all about.

    
asked by anonymous 02.10.2017 / 18:22

1 answer

5

Quick response:

Reverse proxy would be a service or server that forwards requests to another service / server transparently. The client (browser for example) does not know the existence of this second service.

In your case the httpd (apache) service would be forwarded the processing of any content request .php (it is more or less what the regular expression ^/(.*\.php(/.*)?) means) for the service fcgi: //127.0.0.1: 9000 (local server port 9000).

This service in turn treats the request and response using apache as a proxy for the client - PROXY REVERSE.

    
02.10.2017 / 21:22