You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/11/18 14:57:53 UTC

[GitHub] [apisix-dashboard] juzhiyuan commented on issue #2217: request help: Ask how to configure the undefined domain name to point to a service

juzhiyuan commented on issue #2217:
URL: https://github.com/apache/apisix-dashboard/issues/2217#issuecomment-972942705


   ```nginx
   server {
       listen       80 default_server;
       listen       [::]:80 default_server;
       server_name  _; 
       server_name  "";
       return       444;
   }
   ```
   
   For `listen 80`, you need to update APISIX's configuration, see https://github.com/apache/apisix/blob/master/conf/config-default.yaml#L25
   
   For `server_name _`, I'm not sure if you mean `all requests which are not targeted to a specified Routes would return 444`? I need to ask help from @bzp2010.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org