This Help forum is for issues relates to the latest release (1.7.8). For issues related to beta or github version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."
  • Page:
  • 1

TOPIC:

Login when using fake https through Cloudflare 3 years 11 months ago #1

  • Bryld
  • Bryld's Avatar Topic Author
  • Visitor
  • Visitor
Hello, and thanks for solving my previous request for having trees with privately marked roots.

Now, I've taken the plunge, and my new tree replacing PhpGedView is live at:

www.bryld.dk/wbt/pedigree.php?rootid=I1&ged=bryld.ged

I don't have real htttps, but I'm using Cloudflares cached solution with https.

This has the unfortunate side effect that I cannot log in or out while Cloudflare is active - I have to pause Cloudflare and flush the cache for maintenance. The reason seems to be, that webtrees logs in through port 80 by default.

Is there a way to change this - a hidden setting perhaps?

Thanks in advance...

Please Log in or Create an account to join the conversation.

Last edit: by Bryld.

Login when using fake https through Cloudflare 3 years 11 months ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13693
webtrees will generate URLs using the *detected* request.

Since cloudflare is making a HTTP request to your site, webtrees will generate HTTP links - rather than HTTPS links.

You should be able to go to the control panel and under website is a setting for "Server URL".

You may need to update this directly in the database, as the GUI only allows you to set a detected value. It is "SERVER_URL" in the wt_site_settings table.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Login when using fake https through Cloudflare 3 years 11 months ago #3

  • Bryld
  • Bryld's Avatar Topic Author
  • Visitor
  • Visitor

fisharebest wrote: webtrees will generate URLs using the *detected* request.

Since cloudflare is making a HTTP request to your site, webtrees will generate HTTP links - rather than HTTPS links.

You should be able to go to the control panel and under website is a setting for "Server URL".

You may need to update this directly in the database, as the GUI only allows you to set a detected value. It is "SERVER_URL" in the wt_site_settings table.


Hi Greg, and merry Crhistmas.

Thanks for taking the time to guide me through this. The software looks amazing and is a huge improvement over my old PGV-installation.

I have accessed the database directly, but I can't see a field called SERVER_URL in the wt_site_settings table. I have even tried a freetext search on the database and tried some random tables as well.

I can create the field myself - but still, I don't really comprehend, what I should write as the value in the field. Is it www.cloudflare.com or something else?

Thanks in advance...

Please Log in or Create an account to join the conversation.

Login when using fake https through Cloudflare 3 years 11 months ago #4

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13693
insert a new **row** in this table.

The "setting_name" is "SERVER_URL"
The "setting_value" is the URL of your site
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Login when using fake https through Cloudflare 3 years 11 months ago #5

  • Bryld
  • Bryld's Avatar Topic Author
  • Visitor
  • Visitor
Thanks - after adding the row and examining every possible permutation of http/https with ports 80 and 443, I can't seem to get it to work at all.

I have decided that it's not worth it with the hassles of the Cloudflare/webtrees combo just to have faux-https enabled for my site.

I have therefore removed my site from Cloudflare and is waiting for the DNS to flush, then I'll start over.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum