I installed Bitnami MediaWiki AMI on AWS EC2 and that works great when accessed directly through the IP address.
I then created a CloudFront distribution and added a CNAME entry to my domain to point to it. I also changed `$wgServer='//mydomain.com'` in `LocalSettings.php`.
The problem is that when the wiki is opened, there is no styling, just plain HTML. I tried to debug what's happening, and it's the following:
<link rel="stylesheet" href="/load.php?lang=sr-el&modules=mediawiki.ui.button%2Cicon%7Cskins.vector.icons%2Cstyles&only=styles&skin=vector-2022">
Instead of CSS, it just returns this:
/* This file is the Web entry point for MediaWiki's ResourceLoader: <https://www.mediawiki.org/wiki/ResourceLoader>. In this request, no modules were requested. Max made me put this here. */
So, any call to `https://mydomain.com/load.php?...` with any parameters just returns the comment above.
I don't know why this happens and what to do. Thanks for any hint!