Try ERPNext Buy Support Partners Foundation Foundation Members

Www.domain.com give "Sorry we will be back" while domain.com works as expected

Hello,
Today I’ve issued a let’s encyrpt certificate bu issuing below commands.
sudo bench setup add-domain domain.com
sudo bench config dns_multitenant on
sudo -H bench setup lets-encrypt site1.local --custom-domain domain.com

I can access my site by https://domain.com but I can’t access it by https://www.domain.com .
It returns “Sorry, we will be back soon” page.

What should I check?
Regards.
PS: Issuing a ssl certificate to a domain couldn’t be simpler. Amazing works. Well done.

Should I try adding a new domain ? Something like
sudo bench setup add-domain www.domain.com
sudo -H bench setup lets-encrypt site1.local --custom-domain www.domain.com

I’ve resolved this issue by
sudo bench setup add-domain www.domain.com --site site1.local
sudo bench setup lets-encrypt --custom-domain www.domain.com site1.local

1 Like