Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re[2]: Rewrite в поддиректории
Hello Mannur_K,
Wednesday, February 3, 2010, 2:57:54 PM, you wrote:
> Пока дошел до такого конфига, но он не работает (nginx ругается на rewrite):
> location /project/files/ {
> root /var/www/project/webroot/files;
> if (!-e $request_filename) {
> rewrite ^project/files/([0-9]{1,2})/(({1,2})+)$ $1/$2/$3 last;
> }
> }
location "^/project/files/([0-9]{1,2})/(({1,2})+)$" {
root /var/www/project/webroot/files;
try_files $uri /$1/$2/$3 =404;
}
--
Best regards,
Denis mailto:denis@xxxxxxxxxx
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|