Re: non-ASCII в URI в location

2016-10-24 Thread Maxim Dounin
Hello! On Mon, Oct 24, 2016 at 09:52:25PM +0300, Phil Kulin wrote: > На старости лет вруг понял, что не понял. > Смотрите, есть какие-то non-ASCII символы в URI. И например это не > UTF-8. Хочу в location и например в map ловить такие URI. Что-то не > могу ни найти, ни нагуглить как. В исходный

Re: настройка systemd в centos 7

2016-10-24 Thread S.A.N
Мне ещё не нравится, из официального репозитория, вот эта директива: [Service] PrivateTmp=true Огромный подводный камень, например вот это из коробки работать не будет client_body_temp_path /tmp/; client_body_in_file_only on; Потому что PrivateTmp=true, процес бекенда как правило работает под

Re: настройка systemd в centos 7

2016-10-24 Thread Dmitry Ivanov
Здравствуйте, Gena. Вы писали 24 октября 2016 г., 20:32:42: > логично было бы в nginx добавить workaround для бага. нелогично. ибо забивание костылей -- С уважением, Dmitry nginx...@sadok.spb.ru ___ nginx-ru mailing list

alias

2016-10-24 Thread Daniel
hi there, i try to setup a Alias but it seems not working and i didnt know why: server { listen 80; root /var/www/d1/current/web/; server_name localhost; location / { index app.php; add_header Access-Control-Allow-Headers "Origin,

non-ASCII в URI в location

2016-10-24 Thread Phil Kulin
На старости лет вруг понял, что не понял. Смотрите, есть какие-то non-ASCII символы в URI. И например это не UTF-8. Хочу в location и например в map ловить такие URI. Что-то не могу ни найти, ни нагуглить как. В исходный текст посмотреть как nginx разбирает такие строки конфига не залезал. P.S.

Re: Rewrite Vary header before stored in proxy_cache

2016-10-24 Thread itpp2012
Lucas Rolff Wrote: --- > > When using purge as availalbe in nginx-plus > (http://nginx.org/r/proxy_cache_purge), it takes care of removing all > cached variants, much like it does for wildcard purge requests. > Ahh cool! Nice one - maybe we'll be

Re: настройка systemd в centos 7

2016-10-24 Thread Gena Makhomed
On 24.10.2016 21:02, Илья Шипицин wrote: чем-то обусловлена зависимость именно от network.target ? вот и мне не понятно, network.target - это же глюкодром. ну, с точки зрения kvm, сетевой интерфейс честный. природа глюка, видимо, другая. природа глюка описана тут:

Re: настройка systemd в centos 7

2016-10-24 Thread Илья Шипицин
24 октября 2016 г., 22:32 пользователь Gena Makhomed написал: > On 24.10.2016 15:00, Maxim Dounin wrote: > > не стартовал nginx из официального репозитория >>> при запуске системы падает с ошибкой >>> >>> Oct 23 20:43:49 vm-14c6d53b nginx[571]: nginx: [emerg] bind() to >>>

Re: настройка systemd в centos 7

2016-10-24 Thread Gena Makhomed
On 24.10.2016 15:00, Maxim Dounin wrote: не стартовал nginx из официального репозитория при запуске системы падает с ошибкой Oct 23 20:43:49 vm-14c6d53b nginx[571]: nginx: [emerg] bind() to X.X.X.X:80 failed (99: Cannot assign requested address) поменял в /lib/systemd/system/nginx.service:

Re: Rewrite Vary header before stored in proxy_cache

2016-10-24 Thread Lucas Rolff
Hi Maxim, Thank you a lot for the reply! The best possible solution I can think of is to ask the client to fix the Vary header it returns I completely agree, but sometimes it's hard to ask customers to do this, but I do try to do it as often as possible. When using purge as availalbe

Re: настройка systemd в centos 7

2016-10-24 Thread Илья Шипицин
24 октября 2016 г., 17:00 пользователь Maxim Dounin написал: > Hello! > > On Sun, Oct 23, 2016 at 08:46:35PM +0500, Илья Шипицин wrote: > > > Добрый день! > > > > не стартовал nginx из официального репозитория > > при запуске системы падает с ошибкой > > > > Oct 23 20:43:49

Re: Problem with cache key

2016-10-24 Thread Francis Daly
On Wed, Oct 19, 2016 at 06:05:54AM -0400, CarstenK. wrote: Hi there, > I took a look at the header nginx response. > Vary: Accept-Encoding > Vary: Accept-Encoding So they both vary based on Accept-Encoding. When I do a quick test of my versions of curl, Chrome, and Firefox, I see no

Re: nginx 1.11.5 'duplicate' map_hash_bucket_size error when geoip_country block used?

2016-10-24 Thread lists
On Mon, Oct 24, 2016, at 05:20 AM, Maxim Dounin wrote: > It's not relevant to geoip_country, but rather to the map{} block > before the map_hash_bucket_size directive. Something like > > map $uri $foo {} > map_hash_bucket_size 4096; > > is enough to trigger the error, as the map{}

[njs] Incomplete non-recursive parser has been removed.

2016-10-24 Thread Igor Sysoev
details: http://hg.nginx.org/njs/rev/12a38e4e030b branches: changeset: 219:12a38e4e030b user: Igor Sysoev date: Mon Oct 24 18:27:31 2016 +0300 description: Incomplete non-recursive parser has been removed. diffstat: Makefile |16 -

[njs] A build with -Werror=return-type has been fixed.

2016-10-24 Thread Igor Sysoev
details: http://hg.nginx.org/njs/rev/eef409d1d4be branches: changeset: 217:eef409d1d4be user: Igor Sysoev date: Mon Oct 24 17:23:00 2016 +0300 description: A build with -Werror=return-type has been fixed. Patch by Piotr Sikora. diffstat: nxt/auto/clang | 1 + 1

[njs] Style unification of configure feature tests.

2016-10-24 Thread Igor Sysoev
details: http://hg.nginx.org/njs/rev/0fe25989e0a6 branches: changeset: 218:0fe25989e0a6 user: Igor Sysoev date: Mon Oct 24 17:29:27 2016 +0300 description: Style unification of configure feature tests. diffstat: nxt/auto/clang | 10 +-

[njs] A build with -Werror=old-style-definition has been fixed.

2016-10-24 Thread Igor Sysoev
details: http://hg.nginx.org/njs/rev/f87eefdd2c3d branches: changeset: 216:f87eefdd2c3d user: Igor Sysoev date: Mon Oct 24 17:16:10 2016 +0300 description: A build with -Werror=old-style-definition has been fixed. Patch by Piotr Sikora. diffstat: nxt/auto/clang

Re: Receive raw data

2016-10-24 Thread Richard Stanway
Nginx will need a valid header in order to know what to do with the request. Maybe you should look into the stream module instead. https://nginx.org/en/docs/stream/ngx_stream_core_module.html On Mon, Oct 24, 2016 at 2:56 PM, Nattakorn S wrote: > Dear all > > > I have

Receive raw data

2016-10-24 Thread Nattakorn S
Dear all I have electronic device and I config to send TCP/IP data to my server by raw data no http header. My server use nginx with fastcgi for webserver and develop my application for get message from port 8080. But nginx always response with error 400 with "client sent invalid method

Re: Rewrite Vary header before stored in proxy_cache

2016-10-24 Thread Maxim Dounin
Hello! On Mon, Oct 24, 2016 at 06:38:25AM +0200, Lucas Rolff wrote: > Hi guys, > > I'm building a small nginx reverse proxy to take care of a bunch of static > files for my clients - and it works great. > > One thing I'm facing though is that some client sites sent "Vary: > Accept-Encoding,

Re: настройка systemd в centos 7

2016-10-24 Thread Илья Шипицин
24 октября 2016 г., 17:00 пользователь Maxim Dounin написал: > Hello! > > On Sun, Oct 23, 2016 at 08:46:35PM +0500, Илья Шипицин wrote: > > > Добрый день! > > > > не стартовал nginx из официального репозитория > > при запуске системы падает с ошибкой > > > > Oct 23 20:43:49

Re: nginx 1.11.5 'duplicate' map_hash_bucket_size error when geoip_country block used?

2016-10-24 Thread Maxim Dounin
Hello! On Sat, Oct 22, 2016 at 09:30:21AM -0700, li...@ssl-mail.com wrote: > I have a working nginx/1.11.5 instance, with this in config > > ... > http( > ... > 134 map_hash_bucket_size 4096; > > ... >

[njs] Version 0.1.4.

2016-10-24 Thread Igor Sysoev
details: http://hg.nginx.org/njs/rev/508689c1fb94 branches: changeset: 214:508689c1fb94 user: Igor Sysoev date: Mon Oct 24 15:04:50 2016 +0300 description: Version 0.1.4. diffstat: Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (10

[njs] A fix in decodeURI() and decodeURIComponent() functions.

2016-10-24 Thread Igor Sysoev
details: http://hg.nginx.org/njs/rev/cec366d97854 branches: changeset: 211:cec366d97854 user: Igor Sysoev date: Sat Oct 22 20:24:32 2016 +0300 description: A fix in decodeURI() and decodeURIComponent() functions. Found with afl-fuzz. diffstat: njs/njs_string.c |

[njs] njs_array_realloc() has been changed to njs_array_expand().

2016-10-24 Thread Igor Sysoev
details: http://hg.nginx.org/njs/rev/50555ae1d978 branches: changeset: 213:50555ae1d978 user: Igor Sysoev date: Mon Oct 24 14:56:28 2016 +0300 description: njs_array_realloc() has been changed to njs_array_expand(). diffstat: njs/njs_array.c | 58

[njs] Array creation and reallocation optimizations.

2016-10-24 Thread Igor Sysoev
details: http://hg.nginx.org/njs/rev/bf848210269c branches: changeset: 212:bf848210269c user: Igor Sysoev date: Mon Oct 24 14:12:12 2016 +0300 description: Array creation and reallocation optimizations. diffstat: njs/njs_array.c| 35

Re: настройка systemd в centos 7

2016-10-24 Thread Maxim Dounin
Hello! On Sun, Oct 23, 2016 at 08:46:35PM +0500, Илья Шипицин wrote: > Добрый день! > > не стартовал nginx из официального репозитория > при запуске системы падает с ошибкой > > Oct 23 20:43:49 vm-14c6d53b nginx[571]: nginx: [emerg] bind() to X.X.X.X:80 > failed (99: Cannot assign requested

Re: wirte_event_handler

2016-10-24 Thread Maxim Dounin
Hello! On Fri, Oct 21, 2016 at 06:27:55PM -0400, Mathieu Vachon wrote: > Hello again, > > I was wondering what would be the best approach to get a callback @ the > termination of a request ? > > r->write_event_handler ? and simply call ngx_http_finalize_request(r, 0) > after ? Adding a pool

Re: Применение директивы для определенного IP адреса

2016-10-24 Thread Oleg A. Mamontov
On Mon, Oct 24, 2016 at 02:03:26AM -0400, maxpostal wrote: > Соответственно, чтобы указать несколько игнорируемых айпишников, нужно > написать: > > map $http_x_forwarded_for $key { > 5.187.78.183 ''; > 5.187.78.184 ''; > 5.187.78.185 ''; > default $http_x_forwarded_for; > } > > ? Да. --