Cyb3r Everything is working perfectly on server side, but i cannot access my website, cloudflare shows error 521 Web server is down. I have set the DNSSEC and full SSL on cloudflare could that be the issue?
nsgoyat Cyb3r Full SSL should be used when you also have a valid SSL certificate on your server as well otherwise it might cause the issue. What happens when you disable Cloudflare (use in DNS only mode) and browse your site? Do you have any specific entries logged in /var/log/nginx/error.log or the site-specific log file there?
Cyb3r I found the issue thanks to you @nsgoyat, before when I tried to enable let's encrypt on the site it gives me an error saying DNS point to the IP xx.xx.xx.xx but your server IP is xx.xx.xx.xx and I think that because the proxy was enabled, but now after disabling the proxy I was able to install ssl successfully. Thanks again!
nsgoyat Cyb3r Good to know this @Cyb3r . Just make sure you issue the SSL using --dns mode if you're planning to use Cloudflare proxy otherwise you will face the same issue at the time of Letsencrypt SSL renewal.