How many default servers can you configure?

How many default servers can you configure?
Answer
In the configuration above, the default server is the first one — which is nginx’s standard default behaviour. It can also be set explicitly which server should be default, with the default_server parameter in the listen directive: server { listen 80 default_server; server_name example.net www.example.net; }
 

Tìm kiếm

Back
Top