Deploying Nginx as a Web Server
Nginx can be used as a proxy server or for directly serving traffic.
Nginx is one of the highest performance and lowest memory footprint webserver today according to netcraft.
It is used best when used as a proxy server or for serving static content.
3 Ways to Deploy Nginx
- web server
- proxy server
- hybrid Deployments
Nginx as a Web Server it is simple.
Nginx as Web Server
Nginx as a Proxy:
proxying the connection to either a backend apache or Nginx server it works as a reverse proxy server.
It can also be used as a load balancer.
Hybrid Nginx Deployments:
In this case, we can have Nginx as a web server as well as a proxy server. the proxy server can serve the static content as well as it can redirect the traffic to apache and other Nginx server