nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.49k stars 4.08k forks source link

[Bug]: Nonstandard server port ignored, redirecting to :443 same as #44071 #49393

Closed wangmice closed 2 days ago

wangmice commented 2 days ago

⚠️ This issue respects the following points: ⚠️

Bug description

use nginx 1.27,enable tlsv1.3,listen quic on port 40000, use curl or chrome to browe the site, it return 302 to the 443 port. this has reported on https://github.com/nextcloud/server/issues/44071 #44071 but the issue is locked

Steps to reproduce

1.use nginx 1.27,enable tlsv1.3,listen quic on port 40000, 2.use curl or chrome to browe the site, it return 302 to the 443 port. this has reported on https://github.com/nextcloud/server/issues/44071 #44071

I change the nginx config seems to fix, please check it . add this line in the php block: fastcgi_param HTTP_HOST $host:$server_port;

Expected behavior

redirect to the right server port not 443

Nextcloud Server version

30

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Nginx

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

solracsf commented 2 days ago

Well, the issue is locked because it has been demonstrated that this is indeed a configuration (or external software to Nextcloud, like webserver/proxy/protocol) issue.

Please head to https://help.nextcloud.com to help you further debug your setup. Thanks 👍