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:
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
2 Likes
Not really. Looks like the wrong redirect is gone. But now:
Error establishing a database connection
The certificate and the ssl connections are good.
1 Like
system
Closed
July 11, 2019, 8:34am
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.