[GH-ISSUE #995] Proxy nextcloud http to https will lose the port when using a custom port #833

Closed
opened 2026-02-26 06:34:36 +03:00 by kerem · 3 comments
Owner

Originally created by @YorhaL on GitHub (Apr 3, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/995

Environment: Use npm for proxy nextcloud http to https
Example: When using https://customnextcloud.com:2222, nextcloud will redirect it to https://customnextcloud.com

Modifying /etc/nginx/conf.d/include/proxy.conf can solve this problem
proxy_set_header Host $host; -> proxy_set_header Host $http_host;

Originally created by @YorhaL on GitHub (Apr 3, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/995 Environment: Use npm for proxy nextcloud http to https Example: When using https://customnextcloud.com:2222, nextcloud will redirect it to https://customnextcloud.com Modifying /etc/nginx/conf.d/include/proxy.conf can solve this problem proxy_set_header Host $host; -> proxy_set_header Host $http_host;
kerem 2026-02-26 06:34:36 +03:00
  • closed this issue
  • added the
    stale
    bug
    labels
Author
Owner

@beermedlar commented on GitHub (Apr 18, 2021):

You also can fix this use 'overwritehost' => 'customnextcloud.com:2222', in config.php

<!-- gh-comment-id:822025093 --> @beermedlar commented on GitHub (Apr 18, 2021): You also can fix this use `'overwritehost' => 'customnextcloud.com:2222',` in config.php
Author
Owner

@github-actions[bot] commented on GitHub (Mar 15, 2024):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:1998773320 --> @github-actions[bot] commented on GitHub (Mar 15, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@github-actions[bot] commented on GitHub (Apr 26, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:2831741976 --> @github-actions[bot] commented on GitHub (Apr 26, 2025): Issue was closed due to inactivity.
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-proxy-manager-NginxProxyManager#833
No description provided.