[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

Closed
opened 2026-02-26 12:09:08 +03:00 by kerem · 2 comments
Owner

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.

Image Image Image

Info (please complete the following information):

  • Server OS: [e.g. docker]
  • Nginx UI Version: [e.g. 2.1.13]
  • Your Browser: [e.g Chrome]

Additional context
Add any other context about the problem here.

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. <img width="2247" height="801" alt="Image" src="https://github.com/user-attachments/assets/a338a72d-d33c-4eee-bf08-c53120b19671" /> <img width="927" height="446" alt="Image" src="https://github.com/user-attachments/assets/b1c1e4e6-3d8c-4442-bf34-4ba17f548814" /> <img width="1083" height="799" alt="Image" src="https://github.com/user-attachments/assets/5212a5dd-25ec-4ae7-b65e-bcfc5d6cf781" /> **Info (please complete the following information):** - Server OS: [e.g. docker] - Nginx UI Version: [e.g. 2.1.13] - Your Browser: [e.g Chrome] **Additional context** Add any other context about the problem here.
kerem 2026-02-26 12:09:08 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@0xJacky commented on GitHub (Jul 19, 2025):

When you started the container, you didn't map this port to the host machine?

<!-- gh-comment-id:3092379975 --> @0xJacky commented on GitHub (Jul 19, 2025): When you started the container, you didn't map this port to the host machine?
Author
Owner

@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: @.***>

<!-- gh-comment-id:3092406308 --> @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: ***@***.***>
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#682
No description provided.