Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rewrite
- To: nginx-ru@xxxxxxxxx
- Subject: rewrite
- From: "alexey vilyansky" <vilyansky@xxxxxxxxx>
- Date: Mon, 20 Oct 2008 12:36:22 +0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=oXCxPy5iCD16YpFWDANz2HLz7FXhsOP0lCTWygzgikQ=; b=xVnvphAfN6r4UZAVnKiwr40nTqRgmRY60iYzev8Ucms39fXoLKvD3Z6pRMl70GMGv9 9dddbMd412xY+3lRXEIFmf12tdi2eEFg6kDisb8atD486ax+mHIGuELn1StxAOYIWiyL IseS81ChqVUfwyiCaGvWgQCf/FzMAGd8e0ViI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=jSHKr+DAYZB6Eu0euxKD1T1WYWU8rmczd0AEJOvC7ICdqoFCWCy7I85+L0KiYp+Mlx oj8v9rtejABbGLYcbHZlOiWwrCzOaIFxNnWxFNTKB3gIvIxFkz34Lh/X0HIJd+ay81w4 Oq1U4lp5gNYKa8d8Rg3j4mlpOyhlJpEb6R/ds=
Здравствуйте.
Есть следующая конструкция в конфиге (nginx 0.7.19 FreeBSD 7.0-RELEASE)
location /images {
alias /home/vuser/src/storage;
if (!-f $request_filename) {
rewrite ^/images/(.*)/(.*)_(.*).jpg$ up_0_$3.jpg last;
}
}
В nginx-error.log следующее:
2008/10/20 11:05:15 [error] 96720#0: *469 open()
"/usr/local/etc/nginx/htmlup_0_60.jpg" failed (2: No such file or
directory), client: 89.175.80.253, server: vusersite.ru, request: "GET
/images/15_10_2008/up_sdf_60.jpg HTTP/1.1", host: "vusersite.ru"
Почему картинка ищется там и как сделать чтобы искалась, где она на
самом деле лежит?
|