503 error redirecting www to non-www ssl

I have after a lot of work managed to install ee4, letsencrypt and wordpress on my domain: psykolog.nu.

Everything seems to work expect the fact that http://www.psykolog.nu generates 503 error. I guess this has to do with some configuration of the nginx proxy?

According to http://redirectcheck.com/index.php http://www.psykolog.nu generates 503 Error , however if I curl -v http://www.psykolog.nu it shows 301 (as it should).

How shoudl I fix this? Very annoying.

Fixed it myself.

how ? i am moving my cpanel wp site to ee server. the cpanel site used www. so i created a site using the same domain with www. now restoring the site from dropbox backup i did using updraftplus. the domain name same as before so everything should work. if i type my website without www. its going to my 1st website. website had ssl, also cf set to full. need your help

https://www.islamqabd.com/ is ok . without www. is not ok . its going to another website .

Looks like you fixed it yourself.

1 Like

yea, added listen 443 ssl;

Iā€™m not quite there. For some reason my https www is not redirecting correctly to https non-www as I want. How have you configured nginx-proxy / nginx settings?

[ee site create] 503 Service Temporarily Unavailable same as here, just added this listen 443 ssl