Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between reverse proxy and web server?

I read an awesome post on application server vs. webserver at What is the difference between application server and web server?. Moreover, Difference between proxy server and reverse proxy server nicely explains what a proxy server is.

I also learned that some web servers, such as Apache, have reverse proxy built-in. (Source). Also, Wikipedia (https://en.wikipedia.org/wiki/Reverse_proxy) has an image that shows webserver and reverse proxy as separate entities.

enter image description here

Source: https://en.wikipedia.org/wiki/Reverse_proxy (image originally via Privacy Canada, now CC0, license info)

So, I am not sure about the difference between webserver and reverse proxy. Can someone please shed the light?

like image 331
watchtower Avatar asked Dec 15 '18 20:12

watchtower


1 Answers

A web server listens for HTTP requests and reacts to them by sending back an HTTP response.

A reverse proxy is a web server which determines what response to make by also implementing an HTTP client.

Client A makes an HTTP request to the reverse proxy. The reverse proxy makes an HTTP request to Server B. Server B sends an HTTP response to the reverse proxy. The reverse proxy sends that data as its HTTP response to client A.

like image 167
Quentin Avatar answered Oct 13 '22 01:10

Quentin