[03:23:50] I'm trying to run mediawiki in docker. According to the docker image page, https://hub.docker.com/_/mediawiki/, it looks like the container should be listening on port 80? I ran `ss -antl` in the docker container, and it appears to be listening on port 9000. [03:23:55] I would like it to listen on port 80. [03:32:10] more specifically, when I docker run --rm -it mediawiki:1.40.0-fpm-alpine; then in another terminal, docker exec -ti /bin/sh; and inside there, apk add iproute2 && ss -antl; there's only one line showing that port 9000 is listening on all interfaces, and only port 9000. [03:33:02] Oh wait.... php fpm isn't a web server, right? :facepalm: [03:35:20] mediawiki:1.40 appears to be based on debian and runs httpd. That should work better! Thank you all! [19:17:21] I'm running mediawiki using the docker image. I would like it to be served from /directory/. [19:17:40] It looks like I can do that by docker container exec -ti bash; and inside there, mkdir directory && mv * directory; [19:18:28] The problem is, any time the container restarts, everything is put back into /var/www/html, so I have to mkdir directory && mv * directory again. Is there some way to serve from the URL /directory with everything in /var/www/html (without a "directory" directory)? Or do I need to create my own custom image? [19:25:20] Create your own dockerfile to build your image [19:26:42] Also, you probably shouldn't change the location. Instead, use some proxy in front of the docker to map it to a virtual /directory/ [19:31:49] Vulpix: The problem with the proxy approach is that the links generated by mediawiki don't have that "/directory" in it. Can I get mediawiki to generate ...wait I think I know how to do this...maybe [19:33:06] Vulpix: I have a proxy already forwarding requests to /directory. It still doesn't work. I get "Forbidden" (403) when I do that. [19:34:37] It's actually the other way round. Your proxy should forward from /directory (external) to / (internal) [19:35:20] Also, change LocalSettings.php to make MediaWiki generate links to /directory ($wgScriptPath and $wgArticlePath) [19:35:57] u da man, trying! [19:39:34] I have $wgScriptPath = "/directory"; $wgArticlePath = $wgScriptPath; There was no $wgArticlePath in LocalSettings.php before this. Does that look correct? [19:40:15] Oh yeah, I should say, I'm getting a redirect loop. It's redirecting from https://example.com/directory to https://example.com/directory over and over [19:41:55] Interesting (to me): https://example.com/directory/ redirects to https://example.com/directory (without a terminating backslash) [19:43:46] I tried setting $wgScriptPath = "/directory/"; and it does the same thing. [19:44:08] well...nearly the same thing ^_^ /directory now redirects to /directory/ (with a trailing backslash) [19:46:37] I changed to $wgArticlePath = $wgScriptPath . "/$1"; which seems a little better but now /directory/Main_Page is redirecting to itself :( [19:50:51] I changed my reverse proxy to forward "/directory" to internal "/directory" and now there is no redirect. That's the good news. The bad news is: "Refused to apply style because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. [19:50:56] " [19:50:59] So the page has no CSS [19:53:26] You should use "ugly" urls (/directory/index.php?title=Main_Page) first, and once that setup works, complicate it with pretty URLs [19:54:06] I'm at /directory/index.php/Main_Page