My Website Not Working After Installing Let's Encrypt SSL Certificate

My Website is not working after installing SSL Certificate

My domain is: https://punjabigaana.in

I ran this command: sudo certbot --apache -d punjabigaana.in -d www.punjabigaana.in

It produced this output: This page is not working, redirected you too many times.

My web server is (include version): Apache

The operating system my web server runs on is (include version): Ubuntu 18.04

My hosting provider, if applicable, is: OVH

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): No

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):

Hi @appysharma_ap

you have created two certificates, so that part has worked ( https://check-your-website.server-daten.de/?q=punjabigaana.in ):

CertSpotter-Id Issuer not before not after Domain names LE-Duplicate next LE
960495653 CN=Let's Encrypt Authority X3, O=Let's Encrypt, C=US 2019-06-10 18:38:45 2019-09-08 18:38:45 punjabigaana.in, www.punjabigaana.in - 2 entries duplicate nr. 1
960387491 CN=CloudFlare Inc ECC CA-2, O="CloudFlare, Inc.", L=San Francisco, C=US, ST=CA 2019-06-10 00:00:00 2020-06-09 12:00:00 *.punjabigaana.in, punjabigaana.in, sni.cloudflaressl.com - 3 entries

But you have direct loops https -> https:

L https://punjabigaana.in/ 104.24.118.153
301
https://punjabigaana.in/
Error direct loop
L https://punjabigaana.in/ 104.24.119.153
301
https://punjabigaana.in/
Error direct loop
L https://punjabigaana.in/ 2606:4700:30::6818:7699
301
https://punjabigaana.in/
Error direct loop
L https://punjabigaana.in/ 2606:4700:30::6818:7799
301
https://punjabigaana.in/
Error direct loop
L https://www.punjabigaana.in/ 104.24.118.153
301
https://www.punjabigaana.in/
Error direct loop
L https://www.punjabigaana.in/ 104.24.119.153
301
https://www.punjabigaana.in/
Error direct loop
L https://www.punjabigaana.in/ 2606:4700:30::6818:7699
301
https://www.punjabigaana.in/
Error direct loop
L https://www.punjabigaana.in/ 2606:4700:30::6818:7799
301
https://www.punjabigaana.in/
Error direct loop

And you use Cloudflare, so your server isn't direct visible.

Deactivate Cloudflare, so the ip address of your server is directly visible. Then recheck your domain.

Or check your configuration. Perhaps you have a global redirect http -> https, move that redirect to your port 80 vHost, so only http requests are redirected.

If you have Cloudflare’s SSL setting set to “Flexible”, you should change it to “Full (strict)”

1 Like

Thanks Sir.
I disabled Cloudflare and it’s working now.

Thanks again.

2 Likes

I tried @JuergenAuer method and my website is working well.

Thanks for your reply :slight_smile:

2 Likes

Not really. Looks like the wrong redirect is gone. But now:

Domainname Http-Status redirect Sec. G
http://punjabigaana.in/
144.217.4.212 301 https://punjabigaana.in/ 0.213 A
http://www.punjabigaana.in/
144.217.4.212 301 https://www.punjabigaana.in/ 0.226 A
https://punjabigaana.in/
144.217.4.212 500 1.646 S
Internal Server Error
https://www.punjabigaana.in/
144.217.4.212 500 1.084 S
Internal Server Error

Error establishing a database connection

The certificate and the ssl connections are good.

1 Like

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