Nginx hack day project

2016-04-11 Thread CJ Ess
I was trying to think of a hack day project, and one idea was to implement a blob server similar to Facebook's haystack. Facebook did their server with the evhttpd library, I was thinking of making it an nginx module. In order to make it work I'd need to have nginx send a range of bytes from a

Re: TLS/SSL Cache Automatic Purge

2016-04-11 Thread B.R.
Hello, @Maxim Just to be perfectly clear: does that mean that session tickets are supported for any version of nginx (including

Re: Does "include" use the "configuration prefix" or the "path prefix"?

2016-04-11 Thread Maxim Dounin
Hello! On Mon, Apr 11, 2016 at 06:52:25PM +, hroku...@yahoo.com wrote: > I've read the documentation and it implies the "path prefix" > would be used for the "include" directive. > > Example: "include mime.types" > > However, in practice, the "configuration prefix" is always used > even

Re: переменные в map -> proxy_pass

2016-04-11 Thread Den Bozhok
Благодарю за ответ!Однако, резолвер описан, и все-равно ошибка присутствует:  resolver 10.1.1.5 10.1.1.4  valid=10s;resolver_timeout 5s; 11.04.2016, 18:53, "kpoxa" :В конфиге опишите резолвер.http://nginx.org/ru/docs/http/ngx_http_core_module.html#resolver пн, 11 апр. 2016 г. в

[PATCH] Fixed typos

2016-04-11 Thread Alessandro Ghedini
# HG changeset patch # User Alessandro Ghedini # Date 1460389631 -3600 # Mon Apr 11 16:47:11 2016 +0100 # Node ID 892560ebe055092c3bed769234b2bae19d67fb71 # Parent 7640d6c213e150669c8ca7b4005f4c09bf360070 Fixed typos. diff -r 7640d6c213e1 -r 892560ebe055

Re: переменные в map -> proxy_pass

2016-04-11 Thread kpoxa
В конфиге опишите резолвер. http://nginx.org/ru/docs/http/ngx_http_core_module.html#resolver пн, 11 апр. 2016 г. в 18:04, Den Bozhok : > Доброго дня! > > Попробовал использовать map для выбора бэкенда, что бы затем передавать ее > в proxy_pass, но при передаче переменной в

Re: reuseport в конфигах nginx

2016-04-11 Thread Валентин Бартенев
On Monday 11 April 2016 16:59:08 navern wrote: > Да, я читал эту статью. > > Проблема в том, что нам как раз нужен негативный побочный эффект:) > Необходимо, чтобы одновременно можно было запустить два nginx'а. Этого > можно добиться если везде указать reuseport, но только один раз. > А можно

Re: reuseport в конфигах nginx

2016-04-11 Thread Evgeniy Berdnikov
On Mon, Apr 11, 2016 at 04:59:08PM +0300, navern wrote: > Проблема в том, что нам как раз нужен негативный побочный эффект:) > Необходимо, чтобы одновременно можно было запустить два nginx'а. Этого можно > добиться если везде указать reuseport, но только один раз. А зачем нужны 2 копии сервера

Re: передача в upstream dns имени хоста

2016-04-11 Thread nrr
писал же в предыдущем посте, не подходит этот вариант: >> Эти варианты не подходят в location /loc/ : >> proxy_set_header HOST $proxy_host; ## дает upstr1 >> proxy_set_header HOST $host; ## дает имя хоста по какому обратился юзер (example.org) >> proxy_set_header HOST $hostname; ## дает имя хоста

переменные в map -> proxy_pass

2016-04-11 Thread Den Bozhok
Доброго дня! Попробовал использовать map для выбора бэкенда, что бы затем передавать ее в proxy_pass, но при передаче переменной в proxy_pass nginx не может ее разрезолвить в итоговое значение. конфигурация: geo $backend1 {default "long-host-name1.com";}geo $backend2 {default

Re: передача в upstream dns имени хоста

2016-04-11 Thread Vadim A. Misbakh-Soloviov
proxy_set_header Host $host; ? -- wbr, mva signature.asc Description: This is a digitally signed message part. ___ nginx-ru mailing list nginx-ru@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-ru

Re: передача в upstream dns имени хоста

2016-04-11 Thread nrr
вот здесь http://serverfault.com/questions/598202/make-nginx-to-pass-hostname-of-the-upstream-when-reverseproxying описан немного кривой способ: server { listen 8001 default_server; server_name web1.example.com; location / { proxy_pass http://web1.local:80;

передача в upstream dns имени хоста

2016-04-11 Thread nrr
Добрый день! имеется конфиг: upstream upstr1 { server host1.example.com:80; server host2.example.com:80; } location /loc/ { proxy_pass http://upstr1/; } не подскажете есть ли реальный и простой способ передачи в

Re: reuseport в конфигах nginx

2016-04-11 Thread navern
Да, я читал эту статью. Проблема в том, что нам как раз нужен негативный побочный эффект:) Необходимо, чтобы одновременно можно было запустить два nginx'а. Этого можно добиться если везде указать reuseport, но только один раз. А можно подробнее о том как лучше решить эту задачу? Какой

Re: reuseport в конфигах nginx

2016-04-11 Thread Валентин Бартенев
On Monday 11 April 2016 15:14:10 navern wrote: > setsockopt есть всего в двух местах и в одном он нужен, чтобы апгрейдить > сокеты без reuseport'а до reuseport'а, если я правильно понимаю. > > Подобный хак позволил запустить одновременно два nginx'а, так что как > минимум что-то полезное он

Re: reuseport в конфигах nginx

2016-04-11 Thread navern
setsockopt есть всего в двух местах и в одном он нужен, чтобы апгрейдить сокеты без reuseport'а до reuseport'а, если я правильно понимаю. Подобный хак позволил запустить одновременно два nginx'а, так что как минимум что-то полезное он делает. По опции грепал и там действительно много

disable caching for single virtual host

2016-04-11 Thread absolutely_f...@libero.it
Hi,I am using nginx as reverse proxy cache with Apache. Basically I use this configuration: https://www.djm.org.uk/wordpress-nginx-reverse-proxy-caching-setup/ I need to exclude a specific virtual from nginx's cache. So I added "shop" upstream with this configuration: upstream backend {

upstream member liveness

2016-04-11 Thread drookie
What is the scope of the upstream member liveness: is it per upstream group, or per vhost ? If the question is unclear, consider I have 3 nginx - one balancer and two backends, and the following config part on the nginx balancer: upstream backends { server 192.168.0.1; server

Re: nginx 1.9.14 & upload-progress-module

2016-04-11 Thread Валентин Бартенев
On Saturday 09 April 2016 13:56:03 deniss wrote: > После обновления nginx не отображается прогрессбар при аплоаде файла. > В логах: > > 2016/04/09 20:47:37 [debug] 8670#0: *40 malloc: 01249020:16 > 2016/04/09 20:47:37 [debug] 8670#0: *40 upload-progress: get_tracking_id > found args:

Re: 1.9.14 - Issues with disabled request buffering and HTTP/2

2016-04-11 Thread Валентин Бартенев
On Monday 11 April 2016 05:19:17 n.dom wrote: > Hello, > > we have an issue with the newest nginx version 1.9.14. I am not sure if this > is a possible bug or a configuration problem. > > We use nginx with disabled request buffering (proxy_request_buffering off) > > We are currently using nginx

Re: Error 404 if url contains "star"

2016-04-11 Thread B.R.
The only way to know would have been to have a look at the processes table before killing everyone and restarting. If you nginx through the package management of your distribution and service scripts to manage nginx processus, there is little-to-no chance you got multiplt nginx masters running. It

TLS/SSL Cache Automatic Purge

2016-04-11 Thread Arnaud Van der Vorst
Hi, My name is Arnaud and I am new to the list. I would like to know if NGINX is using any automatic purge mechanism for its TLS/SSL Cache configured using the following directives: ssl_session_timeout 10m; ssl_session_cache shared:SSL:10m; I understand that a daily purge of TLS/SSL

cookie issue

2016-04-11 Thread Pankaj Chaudhary
Hi , This is Pankaj,I am trying to write a module which is capable to access header value and set header and reading cookie and setting cookie. if i refer apache module then found apr_table_get() and apr_table_set() APIs are available to get/set header/cookie values. I have tried to use

cookie issue

2016-04-11 Thread Pankaj Chaudhary
Hi, This is Pankaj,I am trying to write a module which is capable to access header value and set header and reading cookie and setting cookie. if i refer apache module then found apr_table_get() and apr_table_set() APIs are available to get/set header/cookie values. I have tried to use