Page MenuHomePhabricator

Document how to use MediaWiki 1.35 in security enforced server setup with path
Open, Needs TriagePublic

Description

In our environment we can't access our site directly. Behind a firewall we have to use a path like:
https://server.domain/path and then setup the wikis behind this as:
https://server.domain/path/wiki1
https://server.domain/path/wiki2

With Mediawiki 1.33 we could simply set

$wgServer="https://server.domain";

and

set the scriptPath

$wgScriptPath="/path/wiki1";

as a workaround for this situation.

With MediaWiki 1.35 we end up with:

grafik.png (188×803 px, 24 KB)

What can we do about this?

Event Timeline

The workaround is

# make sure we don't use "pretty urls"
$wgUsePathInfo=false;

The question is now how to avoid this workaround and how to debug the redirection problem and find out what the cause for the change of behavior between < MW 1.33 and > MW 1.34 in this situation is.

What can we do about this?

Hi @Seppl2013. This does not sound like something is wrong in the code base (a so-called "software bug"), but instead like a support request (how to change settings, questions how to do something, etc.).
As Wikimedia Phabricator is for bug reports and enhancement requests, please ask on the MediaWiki Support Desk. When asking there, please always include version information for the MediaWiki software (and for any other projects/extensions that your problem is related to). Thanks for your understanding

IMHO it's a valid question and might be a bug if there is no proper documentation for answering the questions. I could't find the proper documentation that describe why the behavior changed and what the reason for this is.

It is a valid support question for a support venue. (Phabricator is for bug reports and feature requests.) If you think that specific documentation is wrong and/or needs improvements, feel free to follow https://www.mediawiki.org/wiki/How_to_report_a_bug and create a Documentation ticket - thanks a lot!

Reedy renamed this task from How to use MediaWiki 1.35 in security inforced server setup with path to How to use MediaWiki 1.35 in security enforced server setup with path.Jan 12 2021, 9:12 AM

I don't know whether this a documentation problem or a bug. It's clearly an unexpected change in behavior that makes the system unusable without any warning i'd know of e.g. in a migration guide. So there are two options:

  • fix the behavior
  • change the documentation

It's not for me to decide which route to go as long as the triage has not been done. I feel the ticket should not be closed prematurely since the problem isn't solved yet. We only have an (IMHO ugly) workaround.

It's not clear for me how to open a "documentation" ticket from what https://www.mediawiki.org/wiki/How_to_report_a_bug has to offer. I searched for the keyword "documentation" in the page and couldn't find that keyword. What should i search for ? I never created a documentation ticket before and don't know what it looks like.

Aklapper renamed this task from How to use MediaWiki 1.35 in security enforced server setup with path to Document how to use MediaWiki 1.35 in security enforced server setup with path.Jan 12 2021, 12:19 PM
Aklapper reopened this task as Open.

Hi, same as for any ticket (documentation or not): Please follow the structure on https://www.mediawiki.org/wiki/How_to_report_a_bug - thanks!
I've edited this ticket accordingly. :)