[GH-ISSUE #298] websocket 的 map 指令不应放在站点里配置 #7279

Closed
opened 2026-03-12 19:54:22 +03:00 by kerem · 2 comments
Owner

Originally created by @jearton on GitHub (Feb 18, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/298

map 指令只能放在 http 指令块下面,并且多个站点可共享。所以最好直接固定到 nginx.conf 文件里,否则在多个站点配置文件里重复配置的话,nginx 测试会报错的

Originally created by @jearton on GitHub (Feb 18, 2024). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/298 map 指令只能放在 http 指令块下面,并且多个站点可共享。所以最好直接固定到 nginx.conf 文件里,否则在多个站点配置文件里重复配置的话,nginx 测试会报错的
kerem 2026-03-12 19:54:22 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@0xJacky commented on GitHub (Feb 19, 2024):

nginx 的版本提供一下

<!-- gh-comment-id:1951600943 --> @0xJacky commented on GitHub (Feb 19, 2024): nginx 的版本提供一下
Author
Owner

@jearton commented on GitHub (Feb 19, 2024):

抱歉,我记错了,在http块里重复的map指令,不会导致报错

<!-- gh-comment-id:1951627728 --> @jearton commented on GitHub (Feb 19, 2024): 抱歉,我记错了,在http块里重复的map指令,不会导致报错
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#7279
No description provided.