mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[PR #1397] [CLOSED] Fix: Move http2 directive inside listen to resolve “unknown directive http2” error #7050
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#7050
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?
📋 Pull Request Information
Original PR: https://github.com/0xJacky/nginx-ui/pull/1397
Author: @AndreaF17
Created: 10/17/2025
Status: ❌ Closed
Base:
dev← Head:patch-1📝 Commits (1)
0bf97f0Combine ssl and http2 directives in nginx config📊 Changes
1 file changed (+2 additions, -3 deletions)
View changed files
📝
docs/guide/nginx-proxy-example.md(+2 -3)📄 Description
Summary
This PR updates the NGINX configuration to correctly enable HTTP/2 by moving the http2 directive inside the listen statement.
Previously, using http2 as a standalone directive caused:
Problem
The original configuration:
Using http2 as a separate directive is not supported by NGINX.
This breaks the reverse proxy setup, especially for services that require WebSocket or HTTP/2.
Solution
The http2 directive is now placed correctly inside the listen statement:
This ensures proper HTTP/2 support and removes the startup error.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.