Question

Server block for MediaWiki on NGINX, Ubuntu

Posted December 17, 2013 4.7k views
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 {}

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.

×
3 answers
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).

Anyway, let me add more information.

directory: domain.com/alv
LocalSettings: $wfArticlePath = "/alv/$1"
location /alv {
try_files $uri $usr/ /w/index.php?$query_string
}

This gives domain.com/alv/Main_Page and I want domain.com/alv/index.php/Main_Page

Thank you.
Try replacing
location /alv
with
location /alv/index.php
.
Submit an Answer