Domain could not be validated

I am using cloud panel to manage my vps I pointed two A records from cloudflare to the IP address one root and another www, I created a wordpress site and the last step was to create a an ssl with lets encrypt and i keep getting these two errors for both sites, im follow this tutorial here: https://www.youtube.com/watch?v=W8pwHr14jD8

growthsycamore.com: Domain could not be validated, error message: error type: urn:ietf:params:acme:error:unauthorized, error detail: 2606:4700:3033::6815:2404: Invalid response from https://growthsycamore.com/.well-known/acme-challenge/SDc1y3jB7Zf1QWBBWTBHn3HVfgLqh4zUOoLjD2wC5XM: 526

www.growthsycamore.com: Domain could not be validated, error message: error type: urn:ietf:params:acme:error:unauthorized, error detail: 2606:4700:3030::ac43:b695: Invalid response from https://growthsycamore.com/.well-known/acme-challenge/L4-g9H0ZeexOeG5hpoJpCGknaoGX17qCQAI9ilAzjNw: 526

My domain is: www.growthsycamore.com

My server is running: nginx

The operating system my web server runs on is (include version):
Ubuntu 24.04 with CloudPanel

My hosting provider, if applicable, is: hostinger

I can login to a root shell on my machine (yes or no, or I don't know): Yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel): Yes, Ubuntu 24.04 with CloudPanel

Im not sure if its smth to do with clouflare settings or the vhost code

server {
  listen 80;
  listen [::]:80;
  listen 443 quic;
  listen 443 ssl;
  listen [::]:443 quic;
  listen [::]:443 ssl;
  http2 on;
  http3 off;
  {{ssl_certificate_key}}
  {{ssl_certificate}}
  server_name www.growthsycamore.com;
  return 301 https://growthsycamore.com$request_uri;
}

server {
  listen 80;
  listen [::]:80;
  listen 443 quic;
  listen 443 ssl;
  listen [::]:443 quic;
  listen [::]:443 ssl;
  http2 on;
  http3 off;
  {{ssl_certificate_key}}
  {{ssl_certificate}}
  server_name growthsycamore.com www1.growthsycamore.com;
  {{root}}

  {{nginx_access_log}}
  {{nginx_error_log}}

  if ($scheme != "https") {
    rewrite ^ https://$host$request_uri permanent;
  }

  location ~ /.well-known {
    auth_basic off;
    allow all;
  }

  {{settings}}

  location ~/\.git {
    deny all;
  }

  location ~/(wp-admin/|wp-login.php) {
4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.