[pmwiki-users] page setup

Petko Yotov 5ko at 5ko.fr
Sun Sep 28 06:00:52 PDT 2025


Correct, thanks Gregor.

This is configured by setting $PubDirUrl and $FarmPubDirUrl to the 
correct https URL. It will also help with your PmWiki core scripts and 
styles, and recipes.

Something like this:

   $PubDirUrl = "https://dodin.org/wiki/pub";
   $FarmPubDirUrl = "https://dodin.org/wiki/pub";

I'd also look in config.php for other definitions of variables that end 
in "Url" or "UrlFmt" like $UploadUrlFmt, $ExtPubDirUrl that may need to 
be adapted.

Or you could possibly set these to relative URLs like "/wiki/pub".

Additionally, there is a SSL certificate server name mismatch, the 
certificate is for dodin.org instead of www.dodin.org. You need to add 
and configure a certificate for www.dodin.org too, even if you redirect 
from one to the other.

Petko


On 28/09/2025 11:24, Gregor Klarič wrote:
> If you look in the Browser debug console, you will find that the
> browser is blocking the video and these are the messages I get:
> 
> http://dodin.org/wiki/pub/lib/pmwiki-core.css'. This request has been
> blocked; the content must be served over HTTPS.Understand this error
> (index):1 Mixed Content: The page at 'https://dodin.org/' was loaded
> over HTTPS, but requested an insecure script
> 'http://dodin.org/wiki/pub/lib/pmwiki-lib.js'. This request has been
> blocked; the content must be served over HTTPS.Understand this error
> (index):1 Mixed Content: The page at 'https://dodin.org/' was loaded
> over HTTPS, but requested an insecure script
> 'http://dodin.org/wiki/pub/lib/pmwiki-darktoggle.js'. This request has
> been blocked; the content must be served over HTTPS.Understand this
> error
> (index):1 Mixed Content: The page at 'https://dodin.org/' was loaded
> over HTTPS, but requested an insecure script
> 'http://dodin.org/wiki/pub/lib/pmwiki-utils.js?st=1742128068'. This
> request has been blocked; the content must be served over
> HTTPS.Understand this error
> (index):1 Redirecting navigation www.dodin.org [1] -> dodin.org [2]
> because the server presented a certificate valid for dodin.org [2] but
> not for www.dodin.org [1]. To disable such redirects launch Chrome
> with the following flag:
> --disable-features=SSLCommonNameMismatchHandling
> (index):34 Mixed Content: The page at 'https://dodin.org/' was loaded
> over a secure connection, but contains a form that targets an insecure
> endpoint 'http://www.dodin.org/wiki/'. This endpoint should be made
> available over a secure connection.Understand this warning
> (index):1 Mixed Content: The page at 'https://dodin.org/' was loaded
> over HTTPS, but requested an insecure script
> 'http://dodin.org/wiki/pub/ape/ape.js?1742207498'. This request has
> been blocked; the content must be served over HTTPS.Understand this
> error
> /favicon.ico:1  Failed to load resource: the server responded with a
> status of 404 ()Understand this error
> (index):1 Mixed Content: The page at 'https://dodin.org/' was loaded
> over HTTPS, but requested an insecure stylesheet
> 'http://dodin.org/wiki/pub/lib/pmwiki-core.css'. This request has been
> blocked; the content must be served over HTTPS.
> 
> My guess is you have to parametrize your wiki to serve all the script
> and image directores over https.
> 
> Am So., 28. Sept. 2025 um 11:08 Uhr schrieb jean-daniel dodin
> <jdd at dodin.org>:
> 
>> Hello,
>> 
>> I have a problem I don't know how to diagnose...
>> 
>> my main pmwiki site works as expected in http, but not in https
>> 
>> ok (video plays):
>> 
>> http://www.dodin.org/
>> 
>> code is:
>> 
>> %embed  width=576px height=240px%
>> 
> [[Attach:saubens-49-highway-v.mp4|Attach:saubens-49-highway-v.mp4|]]\\
>> 
>> but this one:
>> 
>> https://www.dodin.org/
>> 
>> do not display the video...
>> 
>> any hint?
>> 
>> thanks
>> jdd
>> 
>> _______________________________________________
>> pmwiki-users mailing list
>> pmwiki-users at pmichaud.com
>> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> 
> 
> Links:
> ------
> [1] http://www.dodin.org
> [2] http://dodin.org
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users



More information about the pmwiki-users mailing list