I've moved (manually, db backup + folder transfer) 4 wordpress websites from one host to another, maintaining the same configuration (nginx proxy manager in docker on 80/443 plus apache on 444/https). The ssl terminates on nginx (letsencrypt).
The apache configuration is the same (virtual hosts configuration has been simply copied).
3 of the 4 work, 1 goes into a redirect loop (no trailing slash found in any configuration).
EDIT: what would help in the investigation? I've tried disabling the plugins (changing plugin's folder name), disabling the .htaccess file (to get at least access to wp-admin) changing site name/url in the db /served names in apache / A/Cname config in provider dns config with every possible combination to understand what fires the 301 redirects with no effects.
Actually, the apache logs do "move" so the request arrives to nginx proxy manager and then is redirected as it should to apache, but then the redirection happens and something goes wrong.
Any hint about what to investigate?
https://example.comset as both site url and home (no trailing slashes and nothing weird in it). I've tried serving alternatively example.com and www.example.com both in nginx and apache with all the possible combination. no results. the redirection loop includes what nginx receives, so if it receives www.example.com the loop goes with that, otherwise with example.comhttps://example.comandhttps://www.example.com? Or are you saying it a self redirect for either of those two URLs?curlto test likecurl --head https://example.comand edit the results of that into your question? Same for any other URLs that are redirecting badly.