[GH-ISSUE #1378] Site里面不显示网站 #766

Closed
opened 2026-02-26 12:09:23 +03:00 by kerem · 11 comments
Owner

Originally created by @Purgepyro on GitHub (Oct 5, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1378

Describe the bug
Dashboard下的Site里面显示Sites will appear here once you configure nginx server blocks with valid server_name directives. 实际上我已经设置了一些网站,但是没有任何显示。
To Reproduce
Steps to reproduce the behavior:

  1. Go to Dashboard
  2. Click on Sites
  3. See error

Expected behavior
应该像 Site list 里面那样显示

Screenshots

Image

Info (please complete the following information):

  • Server OS: Debain 13.1
  • Server Arch: x64
  • Nginx UI Version: 2.2.0-patch1
  • Your Browser: Edge
Originally created by @Purgepyro on GitHub (Oct 5, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1378 **Describe the bug** Dashboard下的Site里面显示Sites will appear here once you configure nginx server blocks with valid server_name directives. 实际上我已经设置了一些网站,但是没有任何显示。 **To Reproduce** Steps to reproduce the behavior: 1. Go to Dashboard 2. Click on Sites 3. See error **Expected behavior** 应该像 Site list 里面那样显示 **Screenshots** <img width="2382" height="1470" alt="Image" src="https://github.com/user-attachments/assets/a5afcef1-bd14-4aa7-926b-ea5346c02486" /> **Info (please complete the following information):** - Server OS: Debain 13.1 - Server Arch: x64 - Nginx UI Version: 2.2.0-patch1 - Your Browser: Edge
kerem 2026-02-26 12:09:23 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@0xJacky commented on GitHub (Oct 6, 2025):

站点是内网的地址吗

<!-- gh-comment-id:3369581393 --> @0xJacky commented on GitHub (Oct 6, 2025): 站点是内网的地址吗
Author
Owner

@Purgepyro commented on GitHub (Oct 6, 2025):

站点是内网的地址吗

反向代理的127.0.0.1

Image
<!-- gh-comment-id:3369587847 --> @Purgepyro commented on GitHub (Oct 6, 2025): > 站点是内网的地址吗 反向代理的127.0.0.1 <img width="673" height="431" alt="Image" src="https://github.com/user-attachments/assets/e5a2005e-241f-446a-b43d-a3d8b0451224" />
Author
Owner

@0xJacky commented on GitHub (Oct 6, 2025):

server_name 是公网ip 或者域名吗

<!-- gh-comment-id:3369611816 --> @0xJacky commented on GitHub (Oct 6, 2025): server_name 是公网ip 或者域名吗
Author
Owner

@Purgepyro commented on GitHub (Oct 6, 2025):

server_name 是公网ip 或者域名吗

是的

<!-- gh-comment-id:3369613043 --> @Purgepyro commented on GitHub (Oct 6, 2025): > server_name 是公网ip 或者域名吗 是的
Author
Owner

@0xJacky commented on GitHub (Oct 6, 2025):

正常来说应该会解析出域名或者 ip 的,方便发一下配置文件吗

Image
<!-- gh-comment-id:3369613755 --> @0xJacky commented on GitHub (Oct 6, 2025): 正常来说应该会解析出域名或者 ip 的,方便发一下配置文件吗 <img width="560" height="564" alt="Image" src="https://github.com/user-attachments/assets/e2a9494c-f3bb-4901-af96-053dc9c2a8f0" />
Author
Owner

@Purgepyro commented on GitHub (Oct 6, 2025):

正常来说应该会解析出域名或者 ip 的,方便发一下配置文件吗

Image

include ws.conf;
server {
server_name nui.visax.net;
include common.conf;
location / {
proxy_pass http://127.0.0.1:9000/;
include proxy.conf;
}
}

<!-- gh-comment-id:3369614708 --> @Purgepyro commented on GitHub (Oct 6, 2025): > 正常来说应该会解析出域名或者 ip 的,方便发一下配置文件吗 > > <img alt="Image" width="560" height="564" src="https://private-user-images.githubusercontent.com/13096985/497606198-e2a9494c-f3bb-4901-af96-053dc9c2a8f0.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTk3MTMzMzYsIm5iZiI6MTc1OTcxMzAzNiwicGF0aCI6Ii8xMzA5Njk4NS80OTc2MDYxOTgtZTJhOTQ5NGMtZjNiYi00OTAxLWFmOTYtMDUzZGM5YzJhOGYwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTEwMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMDA2VDAxMTAzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWExOWM2Y2NhNmRhNjk5MGIzYWYxMzZiZDhjYTE2NjQ1MTk1NmMyYzI0MTY4YjUwNjg2ZWVmOWY2ZTQzYTA4MTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.5aAfZhw5M5O-jmmMbC8JpWo_0OuaH7n3DjCUw_aXtr8"> include ws.conf; server { server_name nui.visax.net; include common.conf; location / { proxy_pass http://127.0.0.1:9000/; include proxy.conf; } }
Author
Owner

@0xJacky commented on GitHub (Oct 6, 2025):

应该是 include common.conf; 导致没有解析出 listen port,然后被忽略了

<!-- gh-comment-id:3369624229 --> @0xJacky commented on GitHub (Oct 6, 2025): 应该是 include common.conf; 导致没有解析出 listen port,然后被忽略了
Author
Owner

@Purgepyro commented on GitHub (Oct 6, 2025):

应该是 include common.conf; 导致没有解析出 listen port,然后被忽略了

我来试一下把 common 里面的东西丢进去

<!-- gh-comment-id:3369624672 --> @Purgepyro commented on GitHub (Oct 6, 2025): > 应该是 include common.conf; 导致没有解析出 listen port,然后被忽略了 我来试一下把 common 里面的东西丢进去
Author
Owner

@0xJacky commented on GitHub (Oct 6, 2025):

然后改完可以重启一下 nginx-ui,这个版本有点小问题,缓存没有自动刷新

<!-- gh-comment-id:3369625382 --> @0xJacky commented on GitHub (Oct 6, 2025): 然后改完可以重启一下 nginx-ui,这个版本有点小问题,缓存没有自动刷新
Author
Owner

@Purgepyro commented on GitHub (Oct 6, 2025):

然后改完可以重启一下 nginx-ui,这个版本有点小问题,缓存没有自动刷新

Image 解析出来了,看来是没有解析 common 的内容。
<!-- gh-comment-id:3369627108 --> @Purgepyro commented on GitHub (Oct 6, 2025): > 然后改完可以重启一下 nginx-ui,这个版本有点小问题,缓存没有自动刷新 <img width="2078" height="476" alt="Image" src="https://github.com/user-attachments/assets/d5c3f3ad-4e65-4d2a-af34-237a6561409f" /> 解析出来了,看来是没有解析 common 的内容。
Author
Owner

@Purgepyro commented on GitHub (Oct 8, 2025):

这个不准备管他了吗

<!-- gh-comment-id:3379300563 --> @Purgepyro commented on GitHub (Oct 8, 2025): 这个不准备管他了吗
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#766
No description provided.