Page 1 of 1

ERR_TOO_MANY_REDIRECTS

Posted: Fri Jan 19, 2018 1:08 am
by elamigosam21
This page isn’t working
website.com redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS

I keep getting this error,

Centos 7
---php 7 ----
Server Version: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/7.0.27
VESTACP 0.9.8

I have tried:
clear cookies
incognito mode

I setup the account with forced-https enabled template
I setup the domain, then go back and get ssl cert from lets encrypt.

then I go and test the default site, default vestacp index.html
and keep getting the same error.

too many redirects.
no .htaccess file, and added an htaccess file and same result.

however
when I enable cloudflare and set full ssl on the domain,
it works ok, but it shows cloudflare ssl cert.

any ideas?

thanks

Re: ERR_TOO_MANY_REDIRECTS

Posted: Fri Jan 19, 2018 11:47 pm
by noogen
You may have some kind of ssl redirect incorrectly/miss configured in nginx or some other configuration (.htaccess)?

Re: ERR_TOO_MANY_REDIRECTS

Posted: Sun Jan 21, 2018 2:11 am
by vesta_mtl
I believe this is normal behaviour. When you pass a website through Cloudflare, it will show the Cloudflare SSL. But you need to use "Full" for SSL in Cloudflare to avoid the too many redirects error.

If you want to have Let's Encrypt SSL, then uncheck the orange cloud for your domain in Cloudflare (A record and www cname) and wait a couple of minutes. Verify that your site is loading without a Cloudflare IP address.

Then, in Vesta go to the domain and tick the boxes for Let's Encrypt SSL. It will be able to create the SSL and when you visit the site it will be the Let's Encrypt SSL.

Once that is done, I recommend you check the orange clouds in Cloudflare again for those benefits (even if it uses Cloudflare SSL, which is fine).

Re: ERR_TOO_MANY_REDIRECTS

Posted: Sun Jan 21, 2018 6:37 am
by elamigosam21
vesta_mtl wrote:I believe this is normal behaviour. When you pass a website through Cloudflare, it will show the Cloudflare SSL. But you need to use "Full" for SSL in Cloudflare to avoid the too many redirects error.

If you want to have Let's Encrypt SSL, then uncheck the orange cloud for your domain in Cloudflare (A record and www cname) and wait a couple of minutes. Verify that your site is loading without a Cloudflare IP address.

Then, in Vesta go to the domain and tick the boxes for Let's Encrypt SSL. It will be able to create the SSL and when you visit the site it will be the Let's Encrypt SSL.

Once that is done, I recommend you check the orange clouds in Cloudflare again for those benefits (even if it uses Cloudflare SSL, which is fine).
hey it worked, thanks a lot!