Topic on Project:Support desk

Help setting up ShortURL with Nginx subdomain

2
Satknave (talkcontribs)

Hi All,

Could someone help me please? I'm tearing my hair out trying to get this working!

So I have the nginx letsencrypt docker container from LinuxServer.io, set up to serve a number of applications from different subdomains. This all works perfectly.

I have recently added a mediawiki container, this also works absolutely fine.

I'm now trying to shorten the url, using the tool at https://shorturls.redwerks.org/ - trying to integrate the nginx config it gives me with my existing subdomains setup, and I just can't get it to work. It displays a basic 'File not found' page.

Here is what I have so far:

https://gist.github.com/MarkAdamson/e7195e6ed1822733d61a3e038ac88add

It includes an example of an existing subdomain that does work, my wiki subdomain that doesn't work, and the supporting include files.

Please let me know if any more information is needed - I'm grateful for any help at all.

Ciencia Al Poder (talkcontribs)

You have $wgArticlePath = "/r/$1"; but I can't find anywhere in your nginx config a translation between /r and your actual MediaWiki installation path.

You may want to check out Manual:Short URL/Nginx for a working example.

Reply to "Help setting up ShortURL with Nginx subdomain"