Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: v1.0.4, bugreport: location directive
- To: nginx-ru@xxxxxxxxx
- Subject: Re: v1.0.4, bugreport: location directive
- From: Sergey Shepelev <temotor@xxxxxxxxx>
- Date: Mon, 20 Jun 2011 02:11:01 +0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=L/KZUME8Lq33zvrGIHOPwRqYeFFvV4Ty7ozDvdI62kE=; b=nZScdsh3RoenPG6qp2J92waoTK74Ex6UU6SewLiAiactnKaGQI1WSkBhSch+FMnLOg Emdablg4yk5wrEGlavpUx+oo7RmKO0wnKP5H+IRM3ywn2b/QE0/KKvlVFIE7N+Ibi1ma YI/W08W0QYIR5dZTkRqSRql69qUvltHjYowig=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=k9Xz1o32ovIpSEB8oUDfIhEN3eFzoA9YIO8yyIJOU2eoDOZSYHX8ddkDalAlyDmwRZ iTPgABY5lGTQBmiSCiavf2L5qkDp/gbRyEOh/0ZpKty0OpYz2O+XyBF++7NKxkdchtae 0ak8GwwsFhN7QECqlkMsS6IdicVtPJt0XISPg=
- In-reply-to: <081f4303027c22b0a1a2d7c084fee49d.NginxMailingListRussian@xxxxxxxxxxxxxxx>
- References: <BANLkTinP0Dog3P3jLBwuvqsdPKsSwdTA+w@xxxxxxxxxxxxxx> <081f4303027c22b0a1a2d7c084fee49d.NginxMailingListRussian@xxxxxxxxxxxxxxx>
> А чтобы отдавать одно на разные pathname по
> общему префиксу, да, придется rewrite.
> Еще есть вариант через error_page и return ? но
> там нельзя вернуть с кодом 200.
Как это нельзя?
http://sysoev.ru/nginx/docs/http/ngx_http_core_module.html#error_page
error_page 404 =200 /empty.gif;
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|