Re: NGINX: Set/use requests with fully qualified domain name (= FQDN).

2016-05-11 Thread Francis Daly
On Wed, May 11, 2016 at 07:24:09AM -0400, Sportmodus wrote: Hi there, > Now I want to proxy_pass an external server and I have to use our proxy for > this to get an external connection. Stock nginx does not speak proxy-http to a proxy server. > Can I modify this to > > "GET http://external.com

Re: limit_req_zone

2016-05-11 Thread tom.b
Thank you Yuriy, Cheers, Tom. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,266845,266854#msg-266854 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: limit_req_zone

2016-05-11 Thread tom.b
Thank you Robert Cheers, Tom. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,266845,266853#msg-266853 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Jim Ohlstein
Hello, > On May 11, 2016, at 5:36 PM, Alex Hall wrote: > > The output of > sudo ps aux | grep php > > admin16599 0.0 0.0 12728 2164 pts/0S+ 21:34 0:00 grep php > root 18852 0.0 0.6 295568 24484 ?Ss May09 0:08 php-fpm: > master process (/etc/php5/fpm/php-fpm.co

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Yuriy Medvedev
Configuration of pool in /etc/php5/fpm/pool.d/ in Ubuntu/Debian. 2016-05-12 0:36 GMT+03:00 Alex Hall : > The output of > sudo ps aux | grep php > > admin16599 0.0 0.0 12728 2164 pts/0S+ 21:34 0:00 grep php > root 18852 0.0 0.6 295568 24484 ?Ss May09 0:08 php-fp

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Alex Hall
The output of sudo ps aux | grep php admin16599 0.0 0.0 12728 2164 pts/0S+ 21:34 0:00 grep php root 18852 0.0 0.6 295568 24484 ?Ss May09 0:08 php-fpm: master process (/etc/php5/fpm/php-fpm.conf) www-data 18857 0.0 0.7 300736 29408 ?SMay09 0:00 php-

Re: limit_req_zone

2016-05-11 Thread Yuriy Medvedev
You can see in source/auto/options by default HTTP_LIMIT_CONN=YES HTTP_LIMIT_REQ=YES 2016-05-12 0:12 GMT+03:00 tom.b : > Greetings fellow nginx users, > > Is the limit_req_zone module included in the core version ? I't doesn't > show > up when I list the modules via nginx -V although when I ad

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Jim Ohlstein
Hello, > On May 11, 2016, at 5:19 PM, Alex Hall wrote: > > > >> On Wed, May 11, 2016 at 5:04 PM, Jim Ohlstein wrote: >> Hello, >> >> On May 11, 2016, at 4:54 PM, Alex Hall wrote: >> >>> >>> On Wed, May 11, 2016 at 4:50 PM, Jim Ohlstein wrote: Hello, >>> > Is it possible that y

Re: limit_req_zone

2016-05-11 Thread Robert Paprocki
This module is built by default, and does not need to be explicitly enabled. Thus you will not see it as part of the configure options. On Wed, May 11, 2016 at 2:12 PM, tom.b wrote: > Greetings fellow nginx users, > > Is the limit_req_zone module included in the core version ? I't doesn't > show

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Alex Hall
On Wed, May 11, 2016 at 5:04 PM, Jim Ohlstein wrote: > Hello, > > On May 11, 2016, at 4:54 PM, Alex Hall wrote: > > > > On Wed, May 11, 2016 at 4:50 PM, Jim Ohlstein wrote: > >> Hello, >> >> > Is it possible that your script is trying to write a configuration file > and lacks proper > permissio

limit_req_zone

2016-05-11 Thread tom.b
Greetings fellow nginx users, Is the limit_req_zone module included in the core version ? I't doesn't show up when I list the modules via nginx -V although when I add the directive into my nginx configuration it appears works fine and limit requests I am using 1.8.1-1.el6.ngx installed from off

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Jim Ohlstein
Hello, > On May 11, 2016, at 4:54 PM, Alex Hall wrote: > > > >> On Wed, May 11, 2016 at 4:50 PM, Jim Ohlstein wrote: >> Hello, > > Is it possible that your script is trying to write a configuration file and > > lacks proper > permission in that directory? > > Yes, very possible, and I'd eve

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Yuriy Medvedev
example of php-fpm pool configuration user = www-data group = www-data pm = dynamic pm.max_children = 50 pm.start_servers = 20 pm.min_spare_servers = 5 pm.max_spare_servers = 35 pm.status_path = /fpm-status ping.path = /fpm-ping ping.response = pong chdir = /var/www/test.ex.com catch_workers_output

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Yuriy Medvedev
You can configure it In configuration of pool php_admin_value[error_log] = /var/log/tes2.ex.com-fpm-php-error.log 2016-05-11 23:26 GMT+03:00 Alex Hall : > Thanks for the quick response. Unfortunately, I'm not having any luck, > unless I mistyped one of the rules. I also can't find where errors g

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Alex Hall
On Wed, May 11, 2016 at 4:50 PM, Jim Ohlstein wrote: > Hello, > > > Is it possible that your script is trying to write a configuration file and lacks proper > permission in that directory? Yes, very possible, and I'd even say likely. The thing is, I can't find out what the directory is. I've giv

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Jim Ohlstein
Hello, > On May 11, 2016, at 4:26 PM, Alex Hall wrote: > > Thanks for the quick response. Unfortunately, I'm not having any luck, unless > I mistyped one of the rules. I also can't find where errors go. Anyone know > where, or if, errors in fastcgi/php5-fpm are logged? /var/log/php5-fpm.log is

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Alex Hall
Thanks for the quick response. Unfortunately, I'm not having any luck, unless I mistyped one of the rules. I also can't find where errors go. Anyone know where, or if, errors in fastcgi/php5-fpm are logged? /var/log/php5-fpm.log is empty. On Wed, May 11, 2016 at 4:09 PM, Yuriy Medvedev wrote: >

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Yuriy Medvedev
Try my config for Osticket 1.7, nginx+php-fpm I create that's config just for testing server { listen 80; server_name test.com; access_log /var/log/nginx/tickets.access.log; error_log /var/log/nginx/tickets.error.log info; index index.php; root /var/www/ticket; client_max_body_size 5M; keepalive_ti

Anyone running OSTicket with Nginx?

2016-05-11 Thread Alex Hall
Hi all, I'm using Nginx (obviously), but I want to try OSTicket. The only supported servers for it are, for whatever reason, Apache and IIS. I hate IIS, and I don't know how I'd run Apache and Nginx together (plus Nginx seems much simpler than Apache to me). Does anyone have OSTicket working under

Re: timeout with UWSGI?

2016-05-11 Thread Alex Hall
Ah, that explains it. Thanks. nginx -V nginx version: nginx/1.6.2 TLS SNI support enabled configure arguments: --with-cc-opt='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt=-Wl,-z,relro --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf

Re: timeout with UWSGI?

2016-05-11 Thread Andrew Hutchings
Hi Alex, nginx -V uses stderr, so try: nginx -V 2>/tmp/out.txt This will redirect stderr to the file instead of stdout. Kind Regards Andrew On 11/05/16 15:34, Alex Hall wrote: Ineeed. Sorry about that. The problem is that I can't capture the output of nginx -V, as--for some reason--the > sym

Re: timeout with UWSGI?

2016-05-11 Thread Alex Hall
Ineeed. Sorry about that. The problem is that I can't capture the output of nginx -V, as--for some reason--the > symbol is only producing an empty file. I can't copy and paste directly from or to the prompt either. If you tell me what you're looking for in nginx -V, I can tell you that value, but t

Re: timeout with UWSGI?

2016-05-11 Thread Aleksandar Lazic
Hi Alex. Am 11-05-2016 16:01, schrieb Alex Hall: Yes, I'm using uwsgi_pass: uwsgi_pass 127.0.0.1:9876 [1]; Hm. I think you have send the mail to early ;-) Please can you read again my mail and add some more lines to your answer, thank you. Best regards aleks On Wed, May 11, 2016 at 9:54

Re: timeout with UWSGI?

2016-05-11 Thread Alex Hall
Yes, I'm using uwsgi_pass: uwsgi_pass 127.0.0.1:9876; On Wed, May 11, 2016 at 9:54 AM, Aleksandar Lazic wrote: > Hi Alex, > > Am 11-05-2016 09:24, schrieb Francis Daly: > >> On Tue, May 10, 2016 at 05:09:21PM -0400, Alex Hall wrote: >> >> Hi there, >> >> We may be finding the problem... I'm not

Re: timeout with UWSGI?

2016-05-11 Thread Aleksandar Lazic
Hi Alex, Am 11-05-2016 09:24, schrieb Francis Daly: On Tue, May 10, 2016 at 05:09:21PM -0400, Alex Hall wrote: Hi there, We may be finding the problem... I'm not sure what you mean by 'upstream service'. Somehow, you tell nginx to talk to "the next server". It can be with "proxy_pass" or "

Re: change client_body_buffer_size from 16K to 256K made the nginx logs size from 50M to 1G..

2016-05-11 Thread Valentin V. Bartenev
On Wednesday 11 May 2016 09:19:58 meteor8488 wrote: > Hi all, I just updated my configuration files as following > > location ~ \.php$ { > try_files $uri =404; > if ($arg_mod = "upload" ) { >

Re: change client_body_buffer_size from 16K to 256K made the nginx logs size from 50M to 1G..

2016-05-11 Thread meteor8488
Hi all, I just updated my configuration files as following location ~ \.php$ { try_files $uri =404; if ($arg_mod = "upload" ) { return 485;

RE: ssl test causes nginx to crash (SSL_do_handshake() failed)

2016-05-11 Thread Lukas Tribus
> I updated nginx but the problem persists. > > Could it be some sort of misconfiguration of my nginx? No, but I suggest you try reconfiguring your cipher suites anyway to exclude anything kerberos related like previously suggested. Lukas _

Re: change client_body_buffer_size from 16K to 256K made the nginx logs size from 50M to 1G..

2016-05-11 Thread meteor8488
Thanks for your quickly response. One more question, for client_body_buffer_size 16K, if the $request_body >16K, it seems nginx will put the request body into a temp file, and then no logs in log file, even though I enabled the request log. Does that mean the best way to keep the post log is to e

NGINX: Set/use requests with fully qualified domain name (= FQDN).

2016-05-11 Thread Sportmodus
Hi @ all. NGINX proxy_pass works great with our internal servers. Thanks for the good work. Now I want to proxy_pass an external server and I have to use our proxy for this to get an external connection. I checked with tcpdump and Wireshark. NGINX sends "GET /uri HTTP/1.1 HOST: external.com" to

Re: RE: ssl test causes nginx to crash (SSL_do_handshake() failed)

2016-05-11 Thread kostbad
I updated nginx but the problem persists. Could it be some sort of misconfiguration of my nginx? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,266590,266800#msg-266800 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman

Re: change client_body_buffer_size from 16K to 256K made the nginx logs size from 50M to 1G..

2016-05-11 Thread Francis Daly
On Wed, May 11, 2016 at 01:39:14AM -0400, meteor8488 wrote: > log_format plog '$remote_addr - $remote_user [$time_local] "$request" > ' > '$status $body_bytes_sent "$http_referer" ' > '"$http_user_agent" "$http_x_forwarded_for" "$request_body"'; What do you think that the las

Re: timeout with UWSGI?

2016-05-11 Thread Francis Daly
On Tue, May 10, 2016 at 05:09:21PM -0400, Alex Hall wrote: Hi there, > We may be finding the problem... I'm not sure what you mean by 'upstream > service'. Somehow, you tell nginx to talk to "the next server". It can be with "proxy_pass" or "fastcgi_pass" or, most likely here, "uwsgi_pass". "th