Page 2 of 2

Re: https don't show theme

Posted: Mon Sep 19, 2022 7:15 am
by Lubomír Ludvík
Arvid wrote: Mon Sep 19, 2022 4:44 am Now call your blog via HTTPS - does the blog_baseurl start with "http://" again?
Again, see footer on https://www.agrofarm.cz/
It looks like provider doesn't support https.

Re: https don't show theme

Posted: Sun Oct 02, 2022 11:00 am
by Arvid
Okay, then please add the "echo" line to defaults.php, line 124. What does it output on your blog?

Code: Select all

ini_set('session.cookie_secure', 1);
// \/ ADD THIS LINE \/
echo 'Test: "' . $_SERVER ['HTTPS'] . '"';
// /\ ADD THIS LINE /\
if (isset($_SERVER ['HTTPS']) && ($_SERVER ['HTTPS'] == '1' || strtolower($_SERVER ['HTTPS']) == 'on')) {
	$serverport = "https://";
} else {
	$serverport = "http://";
}

Re: https don't show theme

Posted: Sun Oct 02, 2022 11:27 pm
by fraenkiman
Hello, everyone,

I've been reading this topic for a while.

What is strange, for HTTPS a nginx/1.13.3 responds. An Apache also responds to HTTP.

The server configuration has to be straightened out. This will not be solvable with FlatPress.

@Lubomír Ludvík: Do you host yourself and also resolve DNS yourself or are both servers located at the provider?

Best Regards
Frank