nginx server_name wildcard or catch-all

前端 未结 7 728
长情又很酷
长情又很酷 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.

    0 讨论(0)
提交回复
热议问题