Re: Start nginx worker process with same user as master process

2016-09-20 Thread Sushma
Thanks for the details. I have explicitly changed permissions for directories as required. But the problem I am facing here is nginx reload fails due to permission denied for proxy_temp folder. I had explicitly changed permissions for this folder so that it could be accesssed by user abc (user

Re: Подменить Status code

2016-09-20 Thread Vadim A. Misbakh-Soloviov
Не говорить клиенту о поддержке частичной отдачи. Впрочем, за километр пахнет синдромом XY. Давайте вы лучше скажете в чём заключается сама задача, вместо того, чтобы пытаться решить то, что по вашему мнению приблизит вас к (неправильному, как правило) решению.

Re: typical value(s) for stream/limit_conn

2016-09-20 Thread itpp2012
Francis Daly Wrote: --- > On Tue, Sep 20, 2016 at 09:27:40PM +0100, Francis Daly wrote: > > > "stream" is "arbitrary tcp connections". There is no "typical", I > think. > > "stream" is also "arbitrary udp datagrams" too, of course. Which >

Re: Подменить Status code

2016-09-20 Thread jtiq
Илья Шипицин Wrote: --- > сервер отдает 206, потому что сервер сказал Accept-Ranges, чем клиент > воспользовался. > > 20 сентября 2016 г., 21:37 пользователь jtiq > > написал: > > > Здравствуйте. > > > > Можно ли

Re: typical value(s) for stream/limit_conn

2016-09-20 Thread Francis Daly
On Tue, Sep 20, 2016 at 09:27:40PM +0100, Francis Daly wrote: > On Mon, Sep 19, 2016 at 09:53:38AM -0400, itpp2012 wrote: Hi there, > "stream" is "arbitrary tcp connections". There is no "typical", I think. "stream" is also "arbitrary udp datagrams" too, of course. Which probably has its own

Re: typical value(s) for stream/limit_conn

2016-09-20 Thread Francis Daly
On Mon, Sep 19, 2016 at 09:53:38AM -0400, itpp2012 wrote: Hi there, > Plenty of guidelines for http limit_conn but hardly any for stream, what > would be a typical value in which cases? > Has anyone done some log/connection analysis to determine what would be > typical use? "stream" is

Re: Start nginx worker process with same user as master process

2016-09-20 Thread Francis Daly
On Tue, Sep 20, 2016 at 06:48:41AM -0400, Sushma wrote: Hi there, There are a few different things that I think you may be conflating here. > When nginx is installed (checking with -V option), I see that the user > specified is "nginx" user. By that, I think you mean that the compile-time

Re: Transmission remote GUI proxy_protocol broken header

2016-09-20 Thread Francis Daly
On Mon, Sep 19, 2016 at 09:08:57AM -0400, adrhc wrote: Hi there, > nginx-1.11.3 > Transmission remote GUI:443 -> sshttp:443 -> stunnel:1443 -> > nginx:127.0.0.1:443 (no ssl, with listen ... proxy_protocol, > port_in_redirect on) There are a lot of potential moving parts there. >

Re: typical value(s) for stream/limit_conn

2016-09-20 Thread itpp2012
5 wasn't really enough, 12 seems a better value. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,269663,269701#msg-269701 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: listen proxy_protocol and rewrite redirect scheme

2016-09-20 Thread Francis Daly
On Sat, Sep 17, 2016 at 03:41:34PM -0400, adrhc wrote: Hi there, > The final working setup: > > src/http/ngx_http_header_filter_module.c: > #if (NGX_HTTP_SSL) > if (c->ssl || port == 443) { > *b->last++ ='s'; > } > #endif This will work in your circumstances -- you

Re: Подменить Status code

2016-09-20 Thread Илья Шипицин
сервер отдает 206, потому что сервер сказал Accept-Ranges, чем клиент воспользовался. 20 сентября 2016 г., 21:37 пользователь jtiq написал: > Здравствуйте. > > Можно ли подменить Status code от проксируемого сервера? > > Он отдаёт "206 Partial Content", а надо

Re: 403 Forbidden

2016-09-20 Thread Иван
Здравствуйте! У Вас веб-сервер запущен от одного пользователя, например, nginx, а домашние директории /home/* (/home/dima) практически всегда доступны на чтение только для их владельца. Вот отсюда ноги и растут. То есть Вам сразу верно сказали: проблема с правами на файловой системе. Вопрос не

Подменить Status code

2016-09-20 Thread jtiq
Здравствуйте. Можно ли подменить Status code от проксируемого сервера? Он отдаёт "206 Partial Content", а надо обычный "200 OK" Posted at Nginx Forum: https://forum.nginx.org/read.php?21,269693,269693#msg-269693 ___ nginx-ru mailing list

Re-balancing Upstreams in TCP LoadBalancer

2016-09-20 Thread Balaji Viswanathan
Hello Nginx Users, I am running nginx as a TCP load balancer (streams module). I am trying to find a way to redistribute client TCP connections to upstream servers, specifically, rebalance the load on the upstream servers (on some event) w/o having to restart nignx. Clients use persistent TCP

Re: 403 Forbidden

2016-09-20 Thread Alex Domoradov
Включите debug и посмотрите 2016-09-20 18:41 GMT+03:00 misha_shar53 : > С файлом как раз все в порядке. Все открывается. > Проблемы возникают когда обращение идет через localhost. > http://localhost/index.htm > А в файле конфигурации указан каталог содержащий этот

Re: 403 Forbidden

2016-09-20 Thread misha_shar53
С файлом как раз все в порядке. Все открывается. Проблемы возникают когда обращение идет через localhost. http://localhost/index.htm А в файле конфигурации указан каталог содержащий этот файл. location /term.htm { root /home/dima/www/; } Posted at Nginx Forum:

Re: proxy_pass Cannot GET

2016-09-20 Thread trivender
Please someone help me with the same issue.. http://stackoverflow.com/questions/39574238/mongo-express-get-request-issue-with-nginx-proxy Posted at Nginx Forum: https://forum.nginx.org/read.php?2,244100,269687#msg-269687 ___ nginx mailing list

Re: [PATCH] proxy-protocol dst variables and proxy-proxy-protocol

2016-09-20 Thread Dmitry Volyntsev
On 20.09.2016 15:50, Bjørnar Ness wrote: 2016-09-20 13:16 GMT+02:00 Dmitry Volyntsev : Could you please clarify what a problem are you trying to solve? Any real world scenario? Hello, Dmitry, thanks for responding. The first problem I am trying to solve is the case where

Re: Nginx не отвечает на запросы

2016-09-20 Thread Maxim Dounin
Hello! On Mon, Sep 19, 2016 at 06:58:16PM -0400, Mikanoshi wrote: > Maxim Dounin Wrote: > --- > > Всё это выглядит как ошибка ядра. Во FreeBSD 11 был существенно > > переделан sendfile() в части работы с флагом SF_NODISKIO - > > возможно,

Re: [PATCH] proxy-protocol dst variables and proxy-proxy-protocol

2016-09-20 Thread Bjørnar Ness
2016-09-20 13:16 GMT+02:00 Dmitry Volyntsev : > Could you please clarify what a problem are you trying to solve? Any real > world scenario? Hello, Dmitry, thanks for responding. The first problem I am trying to solve is the case where we have: LB -> nginx_proxy ->

[nginx] Fixed log levels of configuration parsing errors.

2016-09-20 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/9cf2dce316e5 branches: changeset: 6699:9cf2dce316e5 user: Valentin Bartenev date: Tue Sep 20 15:07:16 2016 +0300 description: Fixed log levels of configuration parsing errors. All the errors that prevent loading configuration

Re: 403 Forbidden

2016-09-20 Thread Anton Gorlov
Проверяйте права по всему пути к файлу. 20.09.2016 14:34, misha_shar53 пишет: > У меня SUSE Linux в нем я Selinux не обнаружил. Наверно по умолчанию не > ставится. > Есть еще аналогичная программа AppArmor. Ее я то же отключил. > Сообщение 403 Forbidden все равно появляется.Ничего не пойму. > В

Re: 403 Forbidden

2016-09-20 Thread misha_shar53
У меня SUSE Linux в нем я Selinux не обнаружил. Наверно по умолчанию не ставится. Есть еще аналогичная программа AppArmor. Ее я то же отключил. Сообщение 403 Forbidden все равно появляется.Ничего не пойму. В Windows попробовал все работает, nginx не отшибает. Posted at Nginx Forum:

Re: Start nginx worker process with same user as master process

2016-09-20 Thread Sushma
Hi Francis, Thanks for your update. When nginx is installed (checking with -V option), I see that the user specified is "nginx" user. However my master and worker process are run as a different user (non root user). In this case I see that many of the directories in nginx are owned by nginx

Re: Nginx не отвечает на запросы

2016-09-20 Thread Evgeniy Berdnikov
On Mon, Sep 19, 2016 at 06:58:16PM -0400, Mikanoshi wrote: > Maxim Dounin Wrote: > --- > > Всё это выглядит как ошибка ядра. Во FreeBSD 11 был существенно > > переделан sendfile() в части работы с флагом SF_NODISKIO - > > возможно, имеет смысл