nginx server_name wildcard or catch-all

前端 未结 7 750
长情又很酷
长情又很酷 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:40

    For me somehow define default_server was not working. I solved it by

    server_name ~^.*$
    

    using regular expression of all.

提交回复
热议问题