Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mediawiki rewrite rules



, Nginx-ru
rewrite mediawiki

http://wiki.nginx.org/NginxMediaWiki

"" , , , :

http://site.ru/ ?



http://site.ru/ ?


, , ?

/index.php?Title=
%3F
php .

location / {
index index.php;
error_page 404 = @mediawiki;
}
location @mediawiki {
set $test "A";
if ($args ~* ^/.*?\?.*) {
set $test "${test}Q";
}
if ($args ~* ^/.*?\.php.*) {
set $test "${test}P";
}
if ($test = A) {
rewrite ^/(.*)? /index.php?title=$1 last;
}
if ($test = AQ) {
rewrite ^/([^?]*)(?:\?(.*))? /index.php?title=$1%3F$2 last;
}
if ($test = AQP) {
rewrite ^/(.*)? /$1 last;
}
}
location ~* ^(.)+\.(php)$ {
proxy_pass http://........


proxy pass apache, rewrite .

nginx rewrite debug log, apache?

nginx 0.6.35

"" url urlencode(),
, ? %3F .

,





 




Copyright © Lexa Software, 1996-2009.