Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
server name "" 444 и 200
- To: nginx-ru@xxxxxxxxx
- Subject: server name "" 444 и 200
- From: "anon" <nginx-forum@xxxxxxxx>
- Date: Thu, 14 Mar 2013 09:10:06 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=helium.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=W9sCS6pGPc+18LaUDaABpvbmSE2NUizP+YUyzTrGvGY=; b=v7DwgxRtep6afIATUocQGhtQY8+Xk0YncUp1dMEvRCDYc52NujuSmOkS5ju3Ua9Lpbr0CUGuozr1dKk0713QUFCqaTwgQZFyzsiDl5FW60DC8qkWd+IGdB0j6wb0dUKpwBrXpl+3q872MhYGVA6zr303IdTXl49cxx1JxeflytQ=;
Привет.
Хочется сделать исключение в таком server. Что бы на /check отвечало 200, а
остальных ботов в 444. Как лучше?
server {
listen *:80 default;
server_name _ "";
location = /check{
return 200;
}
return 444;
}
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,237351,237351#msg-237351
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|