mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 16:55:56 +03:00
[GH-ISSUE #230] Error when Enable TLS #3225
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#3225
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 @sanvu88 on GitHub (Dec 8, 2023).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/230
Describe the bug
Nginx Configuration Parse Error when Enable TLS after
Add SiteTo Reproduce
Steps to reproduce the behavior:
Encrypt website with Let's Encrypt-> NextScreenshots
Info:
Additional context
@0xJacky commented on GitHub (Dec 10, 2023):
Which version of Nginx are you using?
I test on v1.24.0, it works fine.
@sanvu88 commented on GitHub (Dec 10, 2023):
i use version nginx/1.25.3
@0xJacky commented on GitHub (Dec 10, 2023):
ok, i will test for this verison
@0xJacky commented on GitHub (Dec 11, 2023):
I also test with the latest build of Nginx UI and nginx 1.25.3 but cannot reproduce this issue
@0xJacky commented on GitHub (Dec 11, 2023):
This config can pass nginx -t
@sanvu88 commented on GitHub (Dec 11, 2023):
Before configuring TLS, is your website enabled or disabled?
@0xJacky commented on GitHub (Dec 11, 2023):
It is enabled. By the way, I used apt install nginx from offical mainline repo.
@sanvu88 commented on GitHub (Dec 11, 2023):
yeah, I use Nginx build from source. I will check again with apt
@0xJacky commented on GitHub (Dec 11, 2023):
Maybe I should prepare the certificate at first by using http server, then create the https server from the configuration of http server.
@sanvu88 commented on GitHub (Dec 11, 2023):
I also think it's a good idea to sign SSL and make sure it's successful before creating an https server to avoid unnecessary errors.
@sanvu88 commented on GitHub (Dec 11, 2023):
humh, I tried testing with apt install nginx from official mainline repo. And still got the error. it's hard to understand
nginx: [emerg] no "ssl_certificate" is defined for the "listen ... ssl" directive in /etc/nginx/sites-enabled/example.org:17Output of
nginx -V:virtual host:
HTTP Context
@0xJacky commented on GitHub (Dec 11, 2023):
Well, I found out the reason, this issue only occurs when this site is the only one enabled site. So, I have to change the processing order which is mention in https://github.com/0xJacky/nginx-ui/issues/230#issuecomment-1849402067.
@gaetan1903 commented on GitHub (Dec 13, 2023):
I have the same issue and i have only one site enabled
@sanvu88 commented on GitHub (Dec 13, 2023):
jacky fixed it here:
github.com/0xJacky/nginx-ui@17d6216e36