[GH-ISSUE #917] 禁用某个站点后,会自动解析到第一个域名 #7613

Closed
opened 2026-03-12 21:51:19 +03:00 by kerem · 1 comment
Owner

Originally created by @chung1912 on GitHub (Mar 12, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/917

比如我第一个域名站点是abc.example.com,另一个站点是xyz.example.com

当我禁用xyz.example.com之后,输入xyz.example.com网址会打开abc.example.com对应的服务(浏览器显示的域名还是xyz.example.com

但是,如果我随意输入一个没有配置过的域名,就是正常无法解析的,网页什么也打不开

版本号是2.0.0-rc.4 (387)

Originally created by @chung1912 on GitHub (Mar 12, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/917 比如我第一个域名站点是`abc.example.com`,另一个站点是`xyz.example.com` 当我禁用`xyz.example.com`之后,输入`xyz.example.com`网址会打开`abc.example.com`对应的服务(浏览器显示的域名还是`xyz.example.com`) 但是,如果我随意输入一个没有配置过的域名,就是正常无法解析的,网页什么也打不开 版本号是2.0.0-rc.4 (387)
kerem 2026-03-12 21:51:19 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@0xJacky commented on GitHub (Mar 12, 2025):

这很正常,这是 Nginx 的特性。你可以配置 default_server 或者修改配置文件参考 https://github.com/0xJacky/nginx-ui/pull/418/files 进行阻止。

<!-- gh-comment-id:2717215694 --> @0xJacky commented on GitHub (Mar 12, 2025): 这很正常,这是 Nginx 的特性。你可以配置 default_server 或者修改配置文件参考 https://github.com/0xJacky/nginx-ui/pull/418/files 进行阻止。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#7613
No description provided.