How to setup Nginx server blocks (virtual hosts)

  • avatar
  • 681 Views
  • 5 mins read
Preview post image

Nginx logically divides the configurations in order to serve different content into blocks. A server block is a subset of Nginx’s configuration that defines a virtual server used to handle requests of a defined type. Administrators often configure multiple server blocks and decide which block should handle which connection based on the requested domain name, port and IP address.

Hey visitor! Register your account and get access to featured articles and more - it's free.