Re: HTTP/404 on Special:Upload when using POST
Christian Kujau <[email protected]> Mon, 5 May 2025 03:20:08 +0200 (CEST)
| Newsgroups | gmane.org.wikimedia.mediawiki |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 4 May 2025, Brian Wolff wrote:
> If i were to guess, probably something wrong with apache config (e.g. for
> some reason the rewrite rule is ignored on POST). Check your apache error
> log.
Yes, it was some Rewrite snafu after all. Installed a fresh Mediawiki on
the same machine with a different path, and as soon as I enabled the
ShortURL hacks the same thing happened.
So, I re-read the documentation for Apache[0] again and now have:
Alias /wiki /var/www/mediawiki/index.php
RewriteRule ^/*$ %{DOCUMENT_ROOT}/mediawiki/index.php [L]
And, in LocalSettings.php:
$wgScriptPath = "/mediawiki";
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;
For some reason I never had that "Alias" directive in my Apache
configuration before, I don't know how this even worked before. But with
all that uploads are working again. \o/
Thanks for responding!
Christian.
[0] https://www.mediawiki.org/wiki/Manual:Short_URL/Apache
--
BOFH excuse #229:
wrong polarity of neutron flow