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

Version 1.61.0

Bugfix
Finished

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 = www.domain.com){ return 301 http://domain.com$request_uri; } But with the first assumption, both should be present.

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