block



How to setup Nginx server blocks (virtual hosts)

  • avatar
  • 1.1K Views
  • 1 Like
  • 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! Unlock access to featured articles, remove ads and much more - it's free.