rewrite

Хордов Роман rkhordov at yandex.ru
Fri Aug 28 12:23:37 MSD 2009


if ($request_filename !~ (js|gif|ico|jpg|jpeg|png|css|swf|html|xml|ppt|mov|txt)) {
    rewrite ^(.*)$  /index.php;
    }
Т.е. все, кроме определенных форматов, перенаправлять на индекс.
Все работает.
Перенес nginx/0.6.36 на nginx/0.7.61 и rewrite перестал работать.

[notice] 17573#0: *1 "(js|ico|gif|jpg|jpeg|png|css|swf|html|xml|ppt|mov|txt)" does not match "/var/www/", client: 92.107.11.48, server: 71.151.120.10, request: "GET / HTTP/1.1", host: "71.151.120.10"

[notice] 17573#0: *1 "^(.*)$" matches "/", client: 92.107.11.48, server: 71.151.120.10, request: "GET / HTTP/1.1", host: "71.151.120.10"

Подскажите, пожалуйста, что не так делаю?





More information about the nginx-ru mailing list