Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
error_page 404 -> error.log
- To: nginx-ru@xxxxxxxxx
- Subject: error_page 404 -> error.log
- From: "jack644" <nginx-forum@xxxxxxxx>
- Date: Wed, 30 Mar 2011 11:39:15 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=ASnguyjgUJXN7SIDuVL/whB8ZLuSp6K2zfSWtMZsBco=; b=fsHNfsCbKqGaSY9eB7omSkS0KXz8f0GozS+TT0JkRPSYRmC6fdQmm2H4pTwJVndgfv3K5fMm6Ocpn5CESQ9k/rJ+QEI+Ykk8ILm3EzBlOgqcy0nWVW2kau7S9JmK3dD+;
если не находит файл при такой
конфигурации:
location ~ \.jpg {
root /var/www/sitename;
error_page 404 = @backend;
}
то в error.log пишется что-то типо: [error] 30568#0:
*1 open() "/var/www/sitename/test.jpg" failed (2: No such file or
directory), client: 127.0.0.1, server: ...
если error_page заменить на try_files - всё ок.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,186901,186901#msg-186901
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|