Re: nginx-devel Digest, Vol 58, Issue 34

2014-08-26 Thread Donatas Abraitis
Hey, Maxim, after trying to change to NGX_DONE or NGX_HTTP_FORBIDDEN in static ngx_int_t ngx_http_hostprotect_init(ngx_conf_t *cf), I got this when doing nginx restart: nginx: configuration file /opt/nginx/etc/nginx.conf test failed Thank you. On Tue, Aug 26, 2014 at 3:00 PM,

Re: nginx-devel Digest, Vol 58, Issue 34

2014-08-26 Thread Maxim Dounin
Hello! On Tue, Aug 26, 2014 at 03:09:44PM +0300, Donatas Abraitis wrote: Hey, Maxim, after trying to change to NGX_DONE or NGX_HTTP_FORBIDDEN in static ngx_int_t ngx_http_hostprotect_init(ngx_conf_t *cf), I got this when doing nginx restart: You have to change the access phase handler

Re: nginx-devel Digest, Vol 58, Issue 35

2014-08-26 Thread Donatas Abraitis
: http://mailman.nginx.org/pipermail/nginx-devel/attachments/20140826/907e77bd/attachment.html -- ___ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel End of nginx-devel

[nginx] Resolver: notify all waiting requests on timeout.

2014-08-26 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/954867a2f0a6 branches: changeset: 5812:954867a2f0a6 user: Ruslan Ermilov r...@nginx.com date: Tue Aug 19 15:43:26 2014 +0400 description: Resolver: notify all waiting requests on timeout. If a resolver_timeout occurs, only the first waiting

Re: nginx internal redirect

2014-08-26 Thread BieZax
Maxim Dounin Wrote: --- Hello! On Mon, Aug 25, 2014 at 10:51:50AM -0400, BieZax wrote: [...] Добрый день! Захотелось мне авторизовываться через mysql, нормальных модулей не нашел и нарисовал свой костыль в виде

Re: Nginx 1.7.4 + LibreSSL

2014-08-26 Thread ex
cd /home/install --with-cc-opt=-L /usr/local/include --with-ld-opt=-I /usr/local/lib пути поправте Posted at Nginx Forum: http://forum.nginx.org/read.php?21,252783,252832#msg-252832 ___ nginx-ru mailing list nginx-ru@nginx.org

Re: Nginx 1.7.4 + LibreSSL

2014-08-26 Thread Sarymian
Не могу раздуплиться... Указал так: ./configure --user=www-data --group=www-data --with-pcre=/home/install/pcre-8.35/ --with-zlib=/home/install/zlib-1.2.8/ --with-http_ssl_module --with-cc-opt=-L /home/install/libressl-2.0.5/include --with-ld-opt=-I /home/install/libressl-2.0.5/ssl/.libs/

Re: Nginx 1.7.4 + LibreSSL

2014-08-26 Thread Konstantin Tokarev
26.08.2014, 14:55, Sarymian nginx-fo...@nginx.us: Не могу раздуплиться... Указал так: ./configure --user=www-data --group=www-data --with-pcre=/home/install/pcre-8.35/ --with-zlib=/home/install/zlib-1.2.8/ --with-http_ssl_module --with-cc-opt=-L /home/install/libressl-2.0.5/include

Re: Nginx 1.7.4 + LibreSSL

2014-08-26 Thread Sarymian
Херня какая-то... похоже проще забить. Posted at Nginx Forum: http://forum.nginx.org/read.php?21,252783,252837#msg-252837 ___ nginx-ru mailing list nginx-ru@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-ru

Re: Nginx 1.7.4 + LibreSSL

2014-08-26 Thread Maxim Dounin
Hello! On Mon, Aug 25, 2014 at 07:57:54PM -0400, Sarymian wrote: wget http://nginx.org/download/nginx-1.7.4.tar.gz wget http://mirror.yandex.ru/pub/OpenBSD/LibreSSL/libressl-2.0.5.tar.gz wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.35.tar.gz wget

Re: Nginx 1.7.4 + LibreSSL

2014-08-26 Thread Sarymian
Уже и так пробовал. Как я уже не игрался с настройками и параметрами. У меня складывается мнение, что собрать с libressl тот еще секас... Posted at Nginx Forum: http://forum.nginx.org/read.php?21,252783,252843#msg-252843 ___ nginx-ru mailing list

server name: регулярка или статика?

2014-08-26 Thread skeletor
Насколько сильно нагружает регулярка nginx, к примеру для такого server_name ~^(en|ru|de|fr|sp|it|pt|pl|nl|jp|cz|se|cn|tr|mx|gr|kr|hu|gr|ro)\.(site.com)$; ? Имеет ли смысл для повышения быстродействия перечислить вручную все возможные значение в server_name: server_name en.site.com ru.site.com ...

Re: Nginx 1.7.4 + LibreSSL

2014-08-26 Thread Maxim Dounin
Hello! On Tue, Aug 26, 2014 at 08:23:29AM -0400, Sarymian wrote: Уже и так пробовал. Как я уже не игрался с настройками и параметрами. У меня складывается мнение, что собрать с libressl тот еще секас... По сложности задача не отличается от сборки с какой-либо другой библиотекой. Просто вы

fastcgi режет POST до 64000 байт при переходе в next upstream

2014-08-26 Thread Danila Shtan
Полдня сегодня ловил баг, который оказался уже описан в рассылке (англоязычной, правда) — http://forum.nginx.org/read.php?29,250947,251007#msg-251007 Суть в том, что в случае проблем на первом бэкенде, запрос перепосылается на второй, но содержимое POST оказывается равным ровно 64000. Насколько

Запрет неправильного host для ipv6

2014-08-26 Thread iprok
Здравствуйте! Классической конструкцией для запрета запросов с неправильным полем Host: является server { listen 80 default_server; return 444; } Но что делать для ipv6? В ipv6 нельзя сделать несколько раз listen на один и тот же ip:port, так что

Re: error_page 404 и ngx_http_index_module

2014-08-26 Thread Gena Makhomed
On 25.08.2014 15:47, Maxim Dounin wrote: location / { error_page 404 = @php; log_not_found off; } location @php { fastcgi_param SCRIPT_FILENAME /home/www/example.com/engine/index.php; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;

Re: Запрет неправильного host для ipv6

2014-08-26 Thread Maxim Dounin
Hello! On Tue, Aug 26, 2014 at 02:38:22PM -0400, iprok wrote: Здравствуйте! Классической конструкцией для запрета запросов с неправильным полем Host: является server { listen 80 default_server; return 444; } Но что делать для ipv6? В ipv6 нельзя

Re: fastcgi режет POST до 64000 байт при переходе в next upstream

2014-08-26 Thread Валентин Бартенев
On Tuesday 26 August 2014 23:35:06 Danila Shtan wrote: Полдня сегодня ловил баг, который оказался уже описан в рассылке (англоязычной, правда) — http://forum.nginx.org/read.php?29,250947,251007#msg-251007 Суть в том, что в случае проблем на первом бэкенде, запрос перепосылается на второй,

Re: Запрет неправильного host для ipv6

2014-08-26 Thread iprok
Maxim Dounin Wrote: Т.е. делать ровно так же: server { listen 80 default_server; listen [::]:80 default_server; return 444; } Я первым делом попробовал предложенный Вами конфиг. К сожалению вот такой вот вариант конфига не работает, если убрать

Re: Запрет неправильного host для ipv6

2014-08-26 Thread iprok
Простите, забыл указать версию. nginx 1.6.1-1~wheezy, ставился из официального репозиторя nginx: http://nginx.org/packages/debian/ . ОС - Debian Wheezy amd64. Posted at Nginx Forum: http://forum.nginx.org/read.php?21,252860,252865#msg-252865 ___

Re: Запрет неправильного host для ipv6

2014-08-26 Thread Валентин Бартенев
On Tuesday 26 August 2014 16:40:58 iprok wrote: Maxim Dounin Wrote: Т.е. делать ровно так же: server { listen 80 default_server; listen [::]:80 default_server; return 444; } Я первым делом попробовал предложенный Вами конфиг. К сожалению вот

Re: Запрет неправильного host для ipv6

2014-08-26 Thread iprok
Валентин Бартенев Wrote: Уберите отсюда ipv6only=on и всё будет нормально. Непонятно, что вас заставило добавить эту опцию, однако это заставляет nginx делать отдельный bind() на этот адрес. Большое спасибо. Проблема решена. Заставило меня так сделать использование чужих конфигов для

Re: Запрет неправильного host для ipv6

2014-08-26 Thread Maxim Dounin
Hello! On Tue, Aug 26, 2014 at 04:40:58PM -0400, iprok wrote: Maxim Dounin Wrote: Т.е. делать ровно так же: server { listen 80 default_server; listen [::]:80 default_server; return 444; } Я первым делом попробовал предложенный Вами конфиг. К

Re: Запрет неправильного host для ipv6

2014-08-26 Thread Maxim Dounin
Hello! On Wed, Aug 27, 2014 at 12:53:33AM +0400, Валентин Бартенев wrote: [...] server { listen 8080 default_server; listen [::]:8080 default_server; return 444; } server { listen

Re: Nginx 1.7.4 + LibreSSL

2014-08-26 Thread Sarymian
Ну и опять же... При первом варианте: ./configure --user=www-data --group=www-data --with-pcre=/home/install/pcre-8.35/ --with-zlib=/home/install/zlib-1.2.8/ --with-http_ssl_module --with-cc-opt=-I `pwd`/../libressl-2.0.5/.libressl/include --with-ld-opt=-L `pwd`/../libressl-2.0.5/.libressl/lib

Re: Nginx 1.7.4 + LibreSSL

2014-08-26 Thread Sarymian
Я вообще в шоке... хз че происходит. Но секас тот еще. Как сделать чтобы всё работало без танцев не знаю... но: ldconfig /usr/local/nginx/sbin/nginx Эти 2 команды лечат Nginx /usr/local/nginx/sbin/nginx -v nginx version: nginx/1.7.4 Posted at Nginx Forum:

Re: Nginx 1.7.4 + LibreSSL

2014-08-26 Thread Sarymian
Sarymian Wrote: --- Я вообще в шоке... хз че происходит. Но секас тот еще. Как сделать чтобы всё работало без танцев не знаю... но: ldconfig /usr/local/nginx/sbin/nginx Эти 2 команды лечат Nginx /usr/local/nginx/sbin/nginx -v nginx

Re: Nginx 1.7.4 + LibreSSL

2014-08-26 Thread Maxim Dounin
Hello! On Tue, Aug 26, 2014 at 08:36:30PM -0400, Sarymian wrote: Ну и опять же... При первом варианте: ./configure --user=www-data --group=www-data --with-pcre=/home/install/pcre-8.35/ --with-zlib=/home/install/zlib-1.2.8/ --with-http_ssl_module --with-cc-opt=-I

Re: fastcgi режет POST до 64000 байт при переходе в next upstream

2014-08-26 Thread Danila Shtan
Спасибо, Валентин. BTW, я чего-то не понимаю, или баг действительно довольно тяжелый? В моем случае он обозначает, что для ряда запросов вне зависимости от количества бэкендов и их загруженности нужно добиваться, чтобы запрос всегда мог обработать первый бэкенд. Это немного обескураживает. Д.

Re: Nginx 1.7.4 + LibreSSL

2014-08-26 Thread Sarymian
Будем так же по порядочку. Вероятно, вы забыли таки собрать и установить по указанному пути LibreSSL. После ./configure ... имело смысл также запустить make и make install (а перед - почистить всё). --with-openssl= уже задавал и как `pwd`/../libressl-2.0.5/ и как Как уж говорилось

Re: Image serving via nginx are too slow, why ?

2014-08-26 Thread tristanb
Thanks for your message, I applyed your patched, restarted varnish, nginx and php5-fpm and it's still the same. Browing with browser cache off feels like the image are downloaded and displayed in a progressive way because of the slowlyness. Another example too is this PDF of 3Mo who takes 3

Re: Image serving via nginx are too slow, why ?

2014-08-26 Thread Lucas Rolff
Takes me 2.65 seconds to load the PDF with no caching. tristanb wrote: Thanks for your message, I applyed your patched, restarted varnish, nginx and php5-fpm and it's still the same. Browing with browser cache off feels like the image are downloaded and displayed in a progressive way because

Re: Image serving via nginx are too slow, why ?

2014-08-26 Thread tristanb
Damn, I tested this on 3 different connection from 3 different providers (all based in France though, where the server are) - 20mbps ADSL by Orange - 1Gbps fiber by Free - 50 Mbps fiber by SFR Where are you based, what are you connexion specs please ? Posted at Nginx Forum:

Re: Image serving via nginx are too slow, why ?

2014-08-26 Thread Lucas Rolff
I've been testing from a 10 megabit connection in Netherlands, 100mbit connection in netherlands, 500 mbit connection in netherlands, 500mbit connection in France, 100mbit connection in france and a 250 megabit connection in france, a 20 megabit connection in UK. Can ask people from Denmark to

Bugfix: requests might hang if resolver was used [...]

2014-08-26 Thread Jason Woods
Hi, Where do I need to ask if a bug fix will be treated as major and ported to the 1.6 feature stable branch? Specifically, the following is having a significant impact for us, and makes using resolver extremely unstable with proxy_pass and variables. *) Bugfix: requests might hang if resolver

custom error pages for retun directive

2014-08-26 Thread kay
It is not possible to set custom error page. For example /usr/share/nginx/404.html contains test: server { error_page 404 /404.html; if ($request_method = GET) return 404; } location / { proxy_pass http://localhost:8080; } location /404.html { /usr/share/nginx/404.html; } } curl -v

Re: Image serving via nginx are too slow, why ?

2014-08-26 Thread tristanb
Thanks, you really helped me, i'm gonna call my hosting provider to figure it out. I'm glad the nginx is not the cause here ;-) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252816,252827#msg-252827 ___ nginx mailing list nginx@nginx.org

Re: Image serving via nginx are too slow, why ?

2014-08-26 Thread tristanb
A last thing, can you provide a traceroute please ? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252816,252828#msg-252828 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Image serving via nginx are too slow, why ?

2014-08-26 Thread Lucas Rolff
NL example: mtr admin.yproximite.fr HOST: server1Loss% Snt Last Avg Best Wrst StDev 1. hosted.by.leaseweb.com0.0% 20.5 0.5 0.5 0.5 0.0 2. te0-7-0-3.hvc3.evo.leaseweb. 0.0% 20.7 0.7 0.6 0.7 0.1 3. ix-5-1-1-0.thar1.HNN-Amsterd 0.0%

Re: Image serving via nginx are too slow, why ?

2014-08-26 Thread tristanb
Thank you so much ;-) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252816,252831#msg-252831 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: custom error pages for retun directive

2014-08-26 Thread Maxim Dounin
Hello! On Tue, Aug 26, 2014 at 04:48:41AM -0400, kay wrote: It is not possible to set custom error page. For example /usr/share/nginx/404.html contains test: server { error_page 404 /404.html; if ($request_method = GET) return 404; } location / { proxy_pass http://localhost:8080;

Re: custom error pages for retun directive

2014-08-26 Thread kay
How can if in location influence productivity? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252825,252844#msg-252844 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Bugfix: requests might hang if resolver was used [...]

2014-08-26 Thread Maxim Konovalov
Hi Jason, On 8/26/14 12:47 PM, Jason Woods wrote: Hi, Where do I need to ask if a bug fix will be treated as major and ported to the 1.6 feature stable branch? Specifically, the following is having a significant impact for us, and makes using resolver extremely unstable with proxy_pass

Re: custom error pages for retun directive

2014-08-26 Thread Maxim Dounin
Hello! On Tue, Aug 26, 2014 at 08:41:31AM -0400, kay wrote: How can if in location influence productivity? There is no difference from performance point of view. -- Maxim Dounin http://nginx.org/ ___ nginx mailing list nginx@nginx.org

Nginx Windows | Keepalive timeouts location based

2014-08-26 Thread c0nw0nk
I can't tell if this is working or not so i thought i would just ask and perhaps someone can inform me but with nginx keep alive timeouts can we set different timeout values per each location or file type being accessed ? Example : location ~ \.flv$ { flv; keepalive_timeout 60s; } location ~

Re: Nginx Windows | Keepalive timeouts location based

2014-08-26 Thread Styopa Semenukha
On Tuesday, August 26, 2014 12:50:08 PM c0nw0nk wrote: I can't tell if this is working or not so i thought i would just ask and perhaps someone can inform me but with nginx keep alive timeouts can we set different timeout values per each location or file type being accessed ? Example :

Re: Nginx Windows | Keepalive timeouts location based

2014-08-26 Thread itpp2012
You should be able to test this with curl -k, see the curl manpage. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252851,252852#msg-252852 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx Windows | Keepalive timeouts location based

2014-08-26 Thread Maxim Dounin
Hello! On Tue, Aug 26, 2014 at 12:50:08PM -0400, c0nw0nk wrote: I can't tell if this is working or not so i thought i would just ask and perhaps someone can inform me but with nginx keep alive timeouts can we set different timeout values per each location or file type being accessed ?

Help with 1.6.0-1~precise

2014-08-26 Thread Jon Clayton
I'm trying to troubleshoot an issue with existing servers vs new servers for one of my environments, and one of the only differences I've stumbled across is a version bump in nginx. Older servers are running 1.6.0-1~precise on Ubuntu 12.04 and newer builds are using 1.6.1-1~precise. I was

Re: Can't get https to work

2014-08-26 Thread kyprizel
Try to use 192.168.1.102:443. On Wed, Aug 27, 2014 at 1:40 AM, Matthew Ngaha chigga...@gmail.com wrote: I'm trying Nginx with Django on my localhost. I Include a django.conf in my main nginx.conf and in this included conf the server listens for both http https and sends either requests

Re: Can't get https to work

2014-08-26 Thread Matthew Ngaha
I feel really stupid now:( Thanks that fixed it. On Tue, Aug 26, 2014 at 10:56 PM, kyprizel kypri...@gmail.com wrote: Try to use 192.168.1.102:443. On Wed, Aug 27, 2014 at 1:40 AM, Matthew Ngaha chigga...@gmail.com wrote: I'm trying Nginx with Django on my localhost. I Include a