[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. #2559

Closed
opened 2026-02-27 12:23:58 +03:00 by kerem · 0 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-27 12:23:58 +03:00
  • closed this issue
  • added the
    bug
    label
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#2559
No description provided.