HTTP core directives
HTTP server block
Defines an HTTP virtual server. Context: http. No default. Distinct from stream and upstream server directives. Partial HTTP configuration.
Formal Syntax & Structure
nginx syntaxnginx
server { ... }Working Example
Example Snippetnginx
server { listen 127.0.0.1:18083; server_name localhost;}