mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #1244] Using nginx to provide HTTPS service on port 10002 and proxy it locally. When accessing, the error "ERR_CONNECTION_REFUSED" is displayed. #682
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#682
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 @wuxinheng on GitHub (Jul 19, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1244
Describe the bug
Using nginx to provide HTTPS service on port 10002 and proxy it locally. When accessing, the error "ERR_CONNECTION_REFUSED" is displayed.
To Reproduce
Steps to reproduce the behavior:
1.Deploy docker containers
2. Mount the certificate
3.nginx ui import certificate
4. Create a site and import the configuration
server { listen 10002 ssl; listen [::]:10002 ssl; server_name xblogs.net; # SSL configuration ssl_certificate /etc/nginx/ssl/certificate.pem; ssl_certificate_key /etc/nginx/ssl/private.key; location / { proxy_pass https://xblogs.net:10000; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } }6. Visit https://ip+port
Expected behavior
Accessing the service on port 10002 of https allows you to access the local site.
Screenshots
If applicable, add screenshots to help explain your problem.
Info (please complete the following information):
Additional context
Add any other context about the problem here.
@0xJacky commented on GitHub (Jul 19, 2025):
When you started the container, you didn't map this port to the host machine?
@wuxinheng commented on GitHub (Jul 19, 2025):
I see. I thought the default network mode was host.
---- Replied Message ----
| From | @.> |
| Date | 07/19/2025 22:28 |
| To | 0xJacky/nginx-ui @.> |
| Cc | wuxinheng @.>,
Author @.> |
| Subject | Re: [0xJacky/nginx-ui] Using nginx to provide HTTPS service on port 10002 and proxy it locally. When accessing, the error "ERR_CONNECTION_REFUSED" is displayed. (Issue #1244) |
Closed #1244 as not planned.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>