Still beeing redirected with after resetting all redirection settings

Hello guys,

so i wanted to access my Nextcloud WebUI after using a ddns and nginx for a while. I currently have a configuration issue with the DDNS routing and wanted to access the GUI via the server IP adress and the port that is specified for nextcloud (30027).

After deleting the OVERWRITEHOST command in the additional environmental variables section and unchecking the box for “Use different port for URL rewrites”, it still redirects me to my not working domain.

How can this happen even though the nginx app is stopped and all settings in Nextcloud are basically stock?

Thanks in advance!

This is a stretch, and I welcome a reply from someone else who actually uses nextcloud, but If your site was served using HTTPS it’s possible there may be some lingering HSTS information cached in your browser. This would be easy to test if you have another installed browser that you never visited the Nextcloud WebUI with.

This would depend on how the redirect happens, namely if it’s transparent to the client or if the client is specifically informed of the new URL.

Hi @neofusion ,

Thanks for the suggestion! Im going to try this today and give you feedback.

The idea is on shaky ground, but it’s so easy to test and rule out. Good luck!

It may be that you have to edit your config.php file and remove the redirect to domain part.

in my config.php there’s this part:

  'overwriteprotocol' => 'https',
  'overwrite.cli.url' => 'http://cloud.my-domain.com',

If you have it in your config.php, it may be that you have to 1. remove the redirect form http to https and replace your old domain name with the ip you use to access your nextcloud.