NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
22.34k stars 2.59k forks source link

Proxy nextcloud http to https will lose the port when using a custom port #995

Open Spectrelai opened 3 years ago

Spectrelai commented 3 years ago

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;

beermedlar commented 3 years ago

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

github-actions[bot] commented 6 months ago

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