mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #1264] Incorrect deprecation warning for listen ... http2 directive #696
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#696
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @iAHTOH on GitHub (Jul 27, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1264
Describe the bug
nginx-uishows an incorrect deprecation warning when using the officially supportedlisten ... http2directive in the nginx config:This is misleading and wrong —
http2is only valid inside thelistendirective, not as a standalone directive.To Reproduce
Steps to reproduce the behavior:
nginx-ui.Expected behavior
No warning should appear.
This usage is correct per the official NGINX documentation:
👉 https://nginx.org/en/docs/http/ngx_http_core_module.html#listen
Using
http2outside thelistenblock results in a fatal error:Screenshots
Not applicable
Info (please complete the following information):
Additional context
Please update the validation logic in
nginx-uito:http2is only valid as part of thelistendirective.Thanks for maintaining this project!
Additional context
Add any other context about the problem here.
@0xJacky commented on GitHub (Jul 27, 2025):
Hello, if you need to enable HTTP2, according to the documentation of Nginx, for Nginx UI versions 1.25.1 and above, please refer to the following format:
Reference: https://nginx.org/en/docs/http/ngx_http_v2_module.html#http2