On 2014-04-22, 3:36 PM, Matthew Wayne Selznick wrote: > On Mon, Apr 21, 2014 at 12:07 AM, Daniel Friesen > <[email protected]> wrote: >> It's likely something to do with your location rules. Instead of hitting >> the right wiki location a broad WordPress location is being hit. >> >> First thing to do is share the nginx.conf you have related to WordPress >> and MediaWiki. > Here's that -- does it help?: Yup, there are a number of problems with the config: - I don't recommend blacklisting php for uploads that way (that's not even protecting the wiki uploads anyways, is it?). A much nicer way is to enclose the .php handler such that when you define an empty location for the images dir the php handler simply doesn't exist under that path anymore. - The final entry for the try_files in your wiki section points to WordPress, not MediaWiki.
Proper nginx config for MediaWiki looks closer to this: http://shorturls.redwerks.org/?source=userdata&fcgi_params=%2Fetc%2Fnginx%2Ffastcgi_params&has_root=1&fcgi_pass=127.0.0.1%3A9000&script=%2Fthehumanitycontinuum%2Findex.php&hashed_uploads=1&mod_php=1&url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FMain_Page&server=nginx&articlepath=%2Fthehumanitycontinuum%2Fwiki%2F%241&thumb_handler=on What is the path to MediaWiki's index.php? ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://danielfriesen.name/] _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
