Problem with letsencrypt
I don’t know if I’m doing something wrong, but I get the following error when trying to create a letsencrypt site.
Starting SSL verification. Warning: Server error: GET http://www.ryansmithphotography.com/.well-known/acme-challenge/WrdruVilRxBxS-Kltt1jHn4sckeOM12I1zwMziVS_Iw resulted in a 521 Origin Down response: <!–[if lt IE 7]> <html class=“no-js ie6 oldie” lang=“en-US”> <![endif]–> <!–[if IE 7]> <html class (truncated…)
It seems to me the problem is it’s trying to get a http address, but this isn’t possible my site has hsts on it’s not going to allow a http connection.
You could create a 301 redirect to redirect all http to https? I'm assuming you're using EE3 because of the error message you got. These folder paths would be different for EE4.
-
In the WordPress settings set your domain/site to www. or without the 3 w's, whatever your preference is.
-
edit /etc/nginx/conf.d/force-ssl-domain.com.conf and add or remove the www prefix, according to the step above, from the line: "return 301 https://domain.com$request_uri;"
Don’t forget to service nginx reload after editing these configurations, as well as cleaning all your caches. I am not sure but i'm thinking since you have HSTS and you have yet to configure SSL, it might be possible that EE has not yet configured your nginx.conf to include the force-ssl conf file in your settings. If this is the case, create the file manually and then in nginx.conf tell it to include this config file in your setup.
Edit: If using EE4, you can use the --wildcard flag after the ssl flag, this will get you a wildcard certificate to secure your domain and any subdomains you want, and it verifies via TXT records that you need to add to your DNS.
No I'm testing EEV4 RC1 on a new Ubuntu 18.04 VM. My site is running behind cloudflare so it automatically redirects http to https. I'm familiar with configuring this with EE3 but was testing EE4 and got this error, I think I will have to wait for docs on EE4 because I assume I can't just edit nginx.conf like I could with EE3. I can try it with the --wildcard flag and see.
Hey @rsmith4321, EasyEngine v4 has been released. Can you try to create a site with it and let us know if the issue is still there?
I tried it with the wildcard option and it worked fine, I could just add the verification to my dns. I haven't tried it again without the wildcard.