Server block for MediaWiki on NGINX, Ubuntu

I installed Ubuntu on a droplet as well as NGINX. WordPress and XenForo are working fine but I need the MediaWiki subdirectory to work. Is there a source for a working server block somewhere?

location {}

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Try replacing <pre>location /alv</pre> with <pre>location /alv/index.php</pre>.

Thank you. I’ve been all over the site and should have stated this in my post (but I was on an iPad last night). <br> <br>Anyway, let me add more information. <br> <br>directory: <br>LocalSettings: $wfArticlePath = “/alv/$1” <br>location /alv { <br> try_files $uri $usr/ /w/index.php?$query_string <br>} <br> <br>This gives and I want <br> <br>Thank you.