: Forcing SSL on Wordpress crashes site? So I have just installed a paid Comodo SSL on my website. I can visit my website with https://homepage.com/ but the https appears grey. Currently that
So I have just installed a paid Comodo SSL on my website.
I can visit my website with homepage.com/ but the https appears grey. Currently that isn't my worry.
But when I visit the website without typing https, it doesn't redirect to https. So I installed iThemes Better Security, and when I force SSL site wide, I get the following error message:
The homepage.com page isn’t working
homepage.com redirected you too many times.
I have even tried to set it up in the server block by adding return 301 homepage.com$request_uri; as suggested from here: CLICK
I don't really know what else to do. I just want SSL to work site-wide, then I can move onto the greybar issue.
I am running Centos 7 + Nginx + OpenSSL
EDIT:
This is my configuration through Nginx:
I have disabled all wordpress plugins, and renamed .htaccess to something different and the error still persists. Only thing I can think of left is something in my server config. If it helps, I am using Cloudflare with SSL disabled for my domain.
server{
listen 80;
server_name domain.com domain.com; ssl on;
ssl_certificate /etc/nginx/ssl/domain_com/ssl-bundle.crt;
ssl_certificate_key /etc/nginx/ssl/domain_com/domain.key;
ssl_prefer_server_ciphers on;
root /var/www/data/domain.com/public_html/;
index index.php index.html index.htm;
client_max_body_size 500M;
location / {
try_files $uri $uri/ /index.php?q=$uri&$args;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location ~ .php$ {
try_files $uri $uri/ /index.php?q=$uri&$args;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
More posts by @Deb1703797
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.