^_^ You misunderstand how I make short urls work in nginx... I'm not 
doing anything near as hideously ugly as using url rewrites.
I'm using a much more elegant technique, using MW itself like a web app 
and sending all /wiki/ traffic directly to index.php, no rewriting anything.

location / {
        allow all;
        index index.php;
}

location ~ 
/(index.php5?/|wiki|view|render|print|viewsource|purge|(form)?edit|submit|history|info|credits|(un)?watch|(un)?delete|revert|rollback|(un)?protect|markpatrolled|validate|deletetrackback|dublincore|creativecommons)
 {
        include        fastcgi.conf;
        fastcgi_param  SCRIPT_FILENAME    $document_root/index.php;
        fastcgi_param  SCRIPT_NAME        /index.php;
        fastcgi_param  PHP_SELF           /index.php;
        fastcgi_param  SCRIPT_URL         /index.php;
        fastcgi_param  PATH_INFO          $fastcgi_script_name;
        fastcgi_pass   php;
}

location = /robots.txt {
        root /var/www/mediawiki/configs;
}


include /etc/nginx/default.conf;
include /etc/nginx/php.conf;

Note that my location line is fairly large as I am doing action paths as 
well as using some extra actions added in by extensions.

~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://nadir-seen-fire.com]
-Nadir-Point (http://nadir-point.com)
-Wiki-Tools (http://wiki-tools.com)
-Animepedia (http://anime.wikia.com)
-Narutopedia (http://naruto.wikia.com)
-Soul Eater Wiki (http://souleater.wikia.com)



Timothy Ball wrote:
> I would really appreciate a look @ your rewrite rules for nginx to
> make short urls work properly. I tried reading the link you sent and i
> couldn't really make it work.
>
> --timball
>
> On Sun, Jan 11, 2009 at 9:39 PM, Daniel Friesen <[email protected]> wrote:
>   
>> Well, php-cgi is the only php fastcgi there is. I'm using a modified
>> init.d script to start 3 processes as daemons.
>> I'm also using god <http://god.rubyforge.org/> to watch the processes.
>> The combination of 3 processes + god ensures that even if a php script
>> kills a php instance or two the remaining will pick up the slack for the
>> short period of time before god brings the processes back to life.
>>
>> ~Daniel Friesen (Dantman, Nadir-Seen-Fire)
>> ~Profile/Portfolio: http://nadir-seen-fire.com
>> -The Nadir-Point Group (http://nadir-point.com)
>> --It's Wiki-Tools subgroup (http://wiki-tools.com)
>> --The ElectronicMe project (http://electronic-me.org)
>> -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
>> --Animepedia (http://anime.wikia.com)
>> --Narutopedia (http://naruto.wikia.com)
>>
>> Andrew Thornton wrote:
>>     
>>> Hey Daniel,
>>>
>>> What fastcgi are you using with nginx? I am about to do a migration using
>>> nginx and php-fpm from apache/lighttpd. How much traffic are you serving
>>> with it? I appreciate any help/stats you can give.
>>>
>>> On Sat, Jan 10, 2009 at 9:02 PM, Daniel Friesen 
>>> <[email protected]>wrote:
>>>
>>>
>>>       
>>>> See my improvement of the example in the nginx wiki:
>>>> http://wiki.codemongers.com/NginxMediaWiki
>>>>
>>>> I'm actually using action paths myself, if you want I can also list out
>>>> the other scripts and techniques I'm using. Though most of them are
>>>> aimed fairly strongly towards a Debain/Ubuntu environment.
>>>>
>>>> ~Daniel Friesen (Dantman, Nadir-Seen-Fire)
>>>> ~Profile/Portfolio: http://nadir-seen-fire.com
>>>> -The Nadir-Point Group (http://nadir-point.com)
>>>> --It's Wiki-Tools subgroup (http://wiki-tools.com)
>>>> --The ElectronicMe project (http://electronic-me.org)
>>>> -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
>>>> --Animepedia (http://anime.wikia.com)
>>>> --Narutopedia (http://naruto.wikia.com)
>>>>
>>>>
>>>>
>>>> Timothy Ball wrote:
>>>>
>>>>         
>>>>> i've been having trouble configuring nginx and mediawiki together to
>>>>> have short urls. the google showed me these links:
>>>>> http://www.mediawiki.org/wiki/Manual:Short_URL
>>>>>
>>>>>
>>>>>           
>>>> http://www.mediawiki.org/wiki/Manual:Short_URL/wiki/Page_title_--_Lighttpd_rewrite--root_access
>>>>
>>>>         
>>>>> but the lighty configs aren't quite the same as nginx.
>>>>>
>>>>> so I was wondering who has implimented mediawiki + nginx w/ proper
>>>>> short urls and if possible could describe what they put into their
>>>>> nginx.conf :)
>>>>>
>>>>> --timball
>>>>>
>>>>>
>>>>>
>>>>>           
>>>> _______________________________________________
>>>> MediaWiki-l mailing list
>>>> [email protected]
>>>> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>>>>
>>>>
>>>>         
>> _______________________________________________
>> MediaWiki-l mailing list
>> [email protected]
>> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>>
>>     
>
>
>
>   


_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to