nginx_proxy missing www->domain or domain->www redirect when force-ssl enabled

Version 1.61.0


Assume: force_redirect=non-www force_ssl=yes ends up with only: if ($http_x_forwarded_proto != 'https') { return 301 https://$host$request_uri; } without force_ssl, it gives the proper: if ($host ={ return 301$request_uri; } But with the first assumption, both should be present.

Interested to try DirectAdmin? Get a 30-day Free Trial!