nginx server_name wildcard or catch-all

前端 未结 7 729
长情又很酷
长情又很酷 2020-12-04 06:57

I have an instance of nginx running which serves several websites. The first is a status message on the server\'s IP address. The second is an admin console on admin.d

7条回答
  •  遥遥无期
    2020-12-04 07:35

    A simple underscore works as well :

    server_name  _;
    

    Source : http://nginx.org/en/docs/http/server_names.html

提交回复
热议问题