Topic on Project:Support desk

Lovro Asks (talkcontribs)

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!

Bawolff (talkcontribs)

That's weird. I would guess something is misconfigured in the cloudfront distribution causing url parameters to be dropped (or colesced). Can you double check your cloudfront settings?

TheDJ (talkcontribs)

Cloudflare has a caching level called "Ignore Query String", which you might have enabled.

Lovro Asks (talkcontribs)