| From | Sent On | Attachments |
|---|---|---|
| Timothy Ball | Apr 28, 2009 1:44 pm | |
| Michael Shadle | Apr 28, 2009 2:01 pm | |
| Cliff Wells | Apr 28, 2009 2:20 pm | |
| Igor Sysoev | Apr 28, 2009 11:25 pm | |
| Igor Sysoev | Apr 28, 2009 11:28 pm | |
| Cliff Wells | Apr 29, 2009 8:02 am |
| Subject: | Re: mediawiki + nginx | |
|---|---|---|
| From: | Michael Shadle (mike...@gmail.com) | |
| Date: | Apr 28, 2009 2:01:22 pm | |
| List: | ru.sysoev.nginx | |
On Tue, Apr 28, 2009 at 1:45 PM, Timothy Ball <timb...@gmail.com> wrote:
still sorta confused about running those two together. my end goal is to have simple urls like:
wiki.something.com/TheArticleThingie
right now under my current configs i get urls that look like this:
wiki.something.com/index.php/TheArticleThingie
which is *very close* but not quite.
To prove that i've done my share of "just google it"
i tried to cut&paste the configs from http://wiki.nginx.org/NginxMediaWiki and when i do an nginx -t it gives and error:
this is all i have:
rewrite ^/wiki/([^?]*)(?:\?(.*))? /mediawiki/index.php?title=$1&$2 last; rewrite ^/wiki /mediawiki/index.php last;
of course, that assumes
a) mediawiki is installed in /mediawiki b) your "public" prefix is /wiki
You want no /wiki in the mix, so I am not sure how that would work exactly. I would think it might become a circular rewrite.
You could take out /wiki in my example and try it out.
try_files would be another one to try, but that won't work; mediawiki wants the index.php?title= stuff in there.





