New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
redirect loop issues cloudflare
Hi
After activation of Cloudflare - Free and changing the required www settings and dns server.
Flushed Cloudflare cache.
Flushed all cookies in browser. (Chrome + Firefox)
waited about 15 hours
or are there other places I need to change things inside VB4's php or Nginx config files?
Thanks inadvance.
Comments
try changing ssl settings to "relaxed" in cloudflare ( in the tab "crypto" )
There is no "relaxed" do you mean Flexible
i changed if from off to relax (How long does it take until the settings work)
i use self-signed SSL Certificate (Can be the probleme?)
my SSL Setting in Nginx
server {
listen 80;
server_name example.com;
return 301 https://$server_name$request_uri;
}
If you have SSL on your web server change SSL in Cloudflare (Crypto tab) to full otherwise if you don't have a SSL on your web server then disable SSL in Cloudflare.
sounds like cloudflare(https) fetches from port 80 of real host which redirects to https on cloudflare. you probably need to tell cloudflare to fetch data from https of the real host OR get rid of your redirect in nginx.
thank you
@zafouhar i have SSl on my server and I did n't have any problems before i use cloudflare
i set
SSL cryto Full
i get ERR_TOO_MANY_REDIRECTS on chrome
@Falzo
How do I do that
Wordpress ? If so, disable Cloudflare, wait a bit, and put http:// and not https:// inside Wordpress URLs of Dashboard. Re-Enable Cloudflare and the problem is gone away.
Otherwise change, its an example, with adminer.
@johnnymatt
no i use vbulletin board
I don't use cloudflare, so can't exactly tell, but at some point you most probably need to specify the target/your server/domainname whatever... I'd guess there has to be any option on what protocol to use for fetching that data.
otherwise disable your redirect rule in nginx and work from there. as @johnnymatt suggested look if you can change the board-url/servername in your vBB control panel to have it use https:// ...
Oops.. Yup.. I meant Flexible
Its Usually Instant.. may be you can Try a Proxy to check the results.
Ok now it work
Changing SSl 2 Flexible
Disabeling http to htts redirection on Nginx
change the board-url/servername in vBB control panel to http://
but How to set set the http to htts redirection with cloudflare without getting ERR_TOO_MANY_REDIRECTS?
I once helped one of my friends with this plugin (wordpress). https://wordpress.org/plugins/cloudflare-flexible-ssl/
Thank you @saf31
but i dont use wordpress
RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
In the above code try experimenting with "https://www" or simply "https://" if u face any errors. Once its works without CloudFlare, Turn on the CloudFlare fr the domain.
Lastly ,In cloudFlare Turn SSL Setting to "Flexible" or Whatver suits you.
This is what im doing over 2 of my Forums using XenForo.
Give us your configs... No one can help you without seeing your configuration
just use, cloudflare page rules, set to always use https, you're good to go if you don't want change nginx conf.