Thread:Project:Support desk/I meet an interesting problem

I bought a linode VPS few days ago.

Then I transfer my site from old shared host to this new vps.

The environment I built is Linux: Nginx、MySQL、PHP

Then I convert the old .htaccess to new mediawiki.conf

The old apache wrote like: RewriteRule ^(.+)$ /index.php?title=$1 [PT,QSA] and the localsetting wrote: $wgScriptPath = ""; $wgArticlePath        = "/$1"; $wgUsePathInfo        = false; $wgScriptExtension = ".php";

I can't convert it so I search and then I find this page:http://www.mediawiki.org/wiki/Manual:Short_URL/Page_title_-_nginx,_Root_Access,_PHP_as_a_CGI_module

It witre like: location / { if (!-e $request_filename) { rewrite ^/([^?]*)(?:\?(.*))? /index.php?title=$1&$2 last; }               if ($uri ~* "\.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$") { expires max; break; }       }

$wgScriptPath      = ""; $wgArticlePath     = "/$1"; $wgUsePathInfo     = true; $wgScriptExtension = ".php";

Then The article page is correct like http://direct.moegirl.org/对物钉打机娘 and http://direct.moegirl.org/category:对物钉打机娘

but the file page is 404 http://direct.moegirl.org/file:对物钉打机娘.jpg