Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Один URI - разное содержимое в зависимости от IP
- To: nginx-ru@xxxxxxxxx
- Subject: Re: Один URI - разное содержимое в зависимости от IP
- From: "siroco" <nginx-forum@xxxxxxxx>
- Date: Thu, 27 Feb 2014 06:41:56 -0500
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=selenium.jlkhosting.com; s=x; h=Date:Sender:From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=bYio/7H5xyDeU+X0hgK3VTav5p/sTYUcV/VjOA9sePE=; b=Ryi+G2qsK7MdGNWbNY5n6XvH4C2Ue9pVfkS1lD8PzlrTqJ084MC8/sW42AdHUvcwJsK3xdkn7lR4BeU8ug6qUOzviDrGErhmabKT3aARHfvi3RYQzW++QmSvMi54z8NmTMCRaY6a2vmQdgij3S9yyruWXkll4v9JqMeuDioKQIU=;
- In-reply-to: <530F16F8.3020907@citrin.ru>
- References: <530F16F8.3020907@citrin.ru>
Ага!
Вот так вот работает:
geo $client {
default .;
123.123.123.123/32 .internal.;
}
location = /config/config.xml {
alias /var/www/www.domain.com/config/config${client}xml;
}
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,247984,247988#msg-247988
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|