I'm not sure how "hash $cachekey" works...

2016-01-21 Thread highclass99
I have a question about "hash $cachekey" consistent; Would the following Config 1, Config 2, Config 3 be exactly the same of different? i.e. if I swap the configurations would the cache keys stay consistent? The reason I am asking is I have a large configuration similar to Config 2 and am not sure

Re: I'm not sure how "hash $cachekey" works...

2016-01-21 Thread Roman Arutyunyan
Hi, > On 21 Jan 2016, at 15:41, highclass99 wrote: > > I have a question about "hash $cachekey" consistent; > Would the following Config 1, Config 2, Config 3 be exactly the same of > different? > i.e. if I swap the configurations would the cache keys stay consistent? >

geoip и прокси

2016-01-21 Thread Андрей Василишин
Добрый день! Есть ли какая-нибудь возможность не имея списка прокси определять $geoip_country_code последнего адреса в “X-Forwarded-For”? Другими словами: надо точно определить откуда пришел юзер, даже если он за проксями. ___ nginx-ru mailing

Re: Подпапки, alias и try_files

2016-01-21 Thread Mamontov Roman
Добрый день. On Wed, Jan 20, 2016, Maxim Dounin wrote: > Потому что SCRIPT_FILENAME у вас установлен в > $document_root$fastcgi_script_name, где > > - $document_root = /usr/local/www/vexim/index.php, т.к. > используется директива alias с полным заданием пути, > > - $fastcgi_script_name =

Re: geoip и прокси

2016-01-21 Thread Андрей Василишин
21.01.2016 18:52, Михаил Монашёв пишет: у меня вот так сейчас. Подсети яндекса давно не обновлял. ip-шки стран скачиваются по ссылке или из maxmind-а конвертятся. Спасибо за список, в полной мере проблему он конечно не решает, еще бы найти где-то списки сетей этих сервисов

What modules are using the query term "token" for access control?

2016-01-21 Thread Eliezer Croitoru
I have seen that couple media sites are using the "token" query term for access control to some media content and I was wondering what module can do that? For examples the request: http://example.com/media/11.mp4?token=xyz_very_long_token allows access to only this 11.mp4 specific file

Re: What modules are using the query term "token" for access control?

2016-01-21 Thread nanaya
Hi, On Fri, Jan 22, 2016, at 03:16, Eliezer Croitoru wrote: > I have seen that couple media sites are using the "token" query term for > access control to some media content and I was wondering what module can > do that? > For examples the request: >

Re: geoip и прокси

2016-01-21 Thread Михаил Монашёв
Здравствуйте, Андрей. > Есть ли какая-нибудь возможность не имея списка прокси определять > $geoip_country_code последнего адреса в “X-Forwarded-For”? > Другими словами: надо точно определить откуда пришел юзер, даже если он > за проксями. у меня вот так сейчас. Подсети яндекса давно не

Re: geoip и прокси

2016-01-21 Thread Михаил Монашёв
Здравствуйте, Андрей. >> у меня вот так сейчас. Подсети яндекса давно не обновлял. ip-шки стран >> скачиваются по ссылке или из maxmind-а конвертятся. > Спасибо за список, в полной мере проблему он конечно не решает, еще бы > найти где-то списки сетей этих сервисов

Re: What modules are using the query term "token" for access control?

2016-01-21 Thread Eliezer Croitoru
On 21/01/2016 20:38, nanaya wrote: Something like this? http://nginx.org/en/docs/http/ngx_http_secure_link_module.html No. The idea is that a client have the full url to the resource but it will be restricted using a token. The token can be either stored in a DB such as memcached\redis or

Re: I'm not sure how "hash $cachekey" works...

2016-01-21 Thread highclass99
Thank you for your reply. You replied: > With Config1 and Config2 you have 160 hash points per each server (duplicates are removed) Does that mean I could just shorten the whole config to upstream ImageCluster { server 10.1.1.1; server 10.1.1.2; server 10.1.1.3; hash $cachekey

What is the recommended way to swap hash consistent servers (with least sudden hash change)

2016-01-21 Thread highclass99
Hello, If I have the following config upstream ImageCluster { server 10.1.1.1; server 10.1.1.2; server 10.1.1.3; hash $cachekey consistent; } and wish to swap 10.1.1.3 to 10.1.1.5 would it be better to delete 10.1.1.3, restart and wait for the hash keys to update, add 10.1.1.5 and then

Re: geoip и прокси

2016-01-21 Thread Илья Шипицин
выходные узлы tor в формате map для nginx можно делать вот такой штукой https://github.com/m-messiah/ipgeobase-importer 22 января 2016 г., 4:56 пользователь Михаил Монашёв < postmas...@softsearch.ru> написал: > Здравствуйте, Андрей. > > >> у меня вот так сейчас. Подсети яндекса давно не

[ANN] OpenResty 1.9.7.2 released

2016-01-21 Thread Yichun Zhang (agentzh)
Hi folks I am happy to announce the new formal release, 1.9.7.2, of the OpenResty web platform based on NGINX and Lua: https://openresty.org/#Download Both the (portable) source code distribution and the Win32 binary distribution are provided on this Download page. This version is an