For one of our sites which are hosted on the same server we are getting 521 error
What steps have you taken to resolve the issue?
We have the exact same setting for all our sites on our nginx config file. we can access the site with internal dns without issues, but once we point cafemekan.com to the servers ip address through cloudflare DNS, cloudflare comes up this error.
Out of 14 domains only this one and one more domain is causing issues. Can it be a proxying problem, cause we are sure the nginx is running with internal domains but not the cloudflare ones for these 2 domains. We thought it could be a propogation issues but it has been more than 72 hours anyways. Please help!
Thanks a lot
Hodx
What feature, service or problem is this related to?
DNS records
What are the steps to reproduce the issue?
Point the root ip address to our servers
Navigate to the site and view the error
Is the DNS record pointed to the correct IP address of the server where your Website is hosted?
Furthermore, this indicates some issue on the origin host and further troubleshooting with your hosting provider regarding connection and if you’ve got SSL certificate or need to renew it as well
Yup they all point to the same IP address, other sites work but this one doesn’t. We use the edge certificate from Cloudflare, here is what our conf file looks like by the way. One with working example (https://parkgyro.com/), and this one which is not working
listen 80;
server_name cafemekan.com www.cafemekan.com;
location / {
proxy_pass http://localhost:5002;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
server {
listen 80;
server_name parkgyro.com www.parkgyro.com;
location / {
proxy_pass http://localhost:5002;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}```
Same IP address and CNAME www to root domain


type or paste code here