Re: Nginx and Websphere

2015-05-27 Thread sampy
Hi, Francis Daly Wrote: --- > On Wed, May 27, 2015 at 07:27:25AM -0400, sampy wrote: > > Hi there, > > > What does "doesn't work" mean? > > > > web browser don't show the web and appears the error "webint don't > exists > > in DNS", but query

"[emerg]: bind() to 0.0.0.0:80" and relation between 'logs' directory and 'pid' direction

2015-05-27 Thread addictofnginx
Hello, I had compiled my Nginx using '.configure', 'make' and 'make install' commands. nginx.pid file occurs on 'logs' directory as default. If I change set 'pid' directive (e.g. pid sbin/nginx.pid) on my nginx.conf file then I cannot restart Nginx and I get following message at second restart se

noob needs help with alias locations and php

2015-05-27 Thread Mike Wright
Hi all, Been going in circles for the third day now. The server handles files and php scripts as long as they are at or beneath the document root. Here are the two problems I haven't been able to figure out: Directory index of ... is forbidden Can't get to docs not beneath the docume

Re: sock error

2015-05-27 Thread birimblongas
Thanks, but both are pointing to the same place. I don't get the error all the time, just some times (more than what would be acceptable, but not all the time) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,259199,259204#msg-259204 ___ nginx

Re: sock error

2015-05-27 Thread Francis Daly
On Wed, May 27, 2015 at 05:55:23PM -0400, birimblongas wrote: Hi there, > But looking at nginx error log, i get numerous: > > [error] 1837#0: *263157 connect() to unix:/tmp/.app.sock failed (11: > Resource temporarily unavailable) while connecting to upstream, > > What could it be? What cause

Re: encoded url

2015-05-27 Thread Francis Daly
On Sat, May 23, 2015 at 01:56:32PM -0400, pierob83 wrote: Hi there, > I've nginx 1.2.5 and I've an issue about encoded URLs. I've not tested this on 1.2.5; but the concept should remain the same. > Is there a way to make nginx accepts URL like the following: > > http://www.mywebsit

Re: can somebody help me to rewrite this?

2015-05-27 Thread Francis Daly
On Sat, May 23, 2015 at 03:17:55PM -0400, escavern wrote: Hi there, > I need to rewrite from: > www.mywebsite.com/showthread.php?t=123456 > > To > > www.mywebsite.com/forum/showthread.php?t=123456 If the request is "/showthread.php", then redirect the client to the same url but with "/forum" p

sock error

2015-05-27 Thread birimblongas
Hi, i have a rails app using unicorn + nginx. Last month my app started to get really slow and giving me error 502. Unicorn log doesn't show nothing, either my rails app log. But looking at nginx error log, i get numerous: [error] 1837#0: *263157 connect() to unix:/tmp/.app.sock failed (11: Reso

Re: Static files bad loading time

2015-05-27 Thread Francis Daly
On Thu, May 07, 2015 at 01:56:02PM -0400, grigory wrote: Hi there, > > Can you tell from nginx logs whether the slowness is due to > > slow-read-from-disk, or slow-write-to-client, or something else? > > Could you please tell me how to check this out? > My nginx logs do not contain this sort of

Re: unknown directive "thread_pool"

2015-05-27 Thread Andrew Hutchings
Ah! That was my next guess. I’m glad you sorted it. If you have this problem again there is a way to do a rolling upgrade without a start/stop, see this link for more info: http://nginx.org/en/docs/control.html#upgrade Kind Regards Andrew > On 27 May 2015, at 15:57, Richard Kearsley wrote: >

Re: Fwd: Measuring request processing time

2015-05-27 Thread Maxim Dounin
Hello! On Wed, May 27, 2015 at 07:28:56PM +0300, Дмитрий Шалашов wrote: > Thanks! That is a good idea. > > So Nginx will do some work to fill these variables only in their > corresponding locations? Yes, both standard geoip module and 3rd party geoip2 module you've linked only do database look

Re: nginx on Debian: dynamic network interfaces

2015-05-27 Thread itpp2012
B.R. Wrote: --- > Will you make everyone using nginx on Debian using > that > trick, as soon as they need DNS on a default 'hotplug' interface with > sysvinit? No I'd make everyone use IP addresses with the EBLB I've introduced a while ago with s

Re: Fwd: Measuring request processing time

2015-05-27 Thread Дмитрий Шалашов
Thanks! That is a good idea. So Nginx will do some work to fill these variables only in their corresponding locations? Best regards, Dmitriy Shalashov 2015-05-27 17:53 GMT+03:00 Maxim Dounin : > Hello! > > On Wed, May 27, 2015 at 05:08:52PM +0300, Дмитрий Шалашов wrote: > > > Hi! > > > > Is th

Re: nginx on Debian: dynamic network interfaces

2015-05-27 Thread B.R.
Thanks to all for your input. @Konstantin 'workaround' has a very specific meaning there is a bug and a way to avoid it. I want to address the bug where it lies, the latter being unclear still. systemd has probably benefits and some drawbacks which are important to me: I am sticking to sysvinit.

NGINX rtmp module multiple push and grab from another app?

2015-05-27 Thread Tim Beyer
Hey, guys! I have problems with the rtmp module. There is an input application, that pushes "xyz" to the "2nd" application, that exec_pushes with ffmpeg to a "3rd" application. From "3rd" it gets pushed to 2 rtmp servers and to "rtmp://localhost/4th" - The problem is, that I can't grab "rtmp://IP/

Re: unknown directive "thread_pool"

2015-05-27 Thread Richard Kearsley
Thanks Andrew I figured this out but it was not a duplicate binary It was because I was issuing -HUP to reload nginx rather than proper start/stop :-[ Cheers Richard On 27/05/15 14:34, Andrew Hutchings wrote: Hi Richard, Do you have an Ubuntu package for Nginx installed also (usually install

Re: Fwd: Measuring request processing time

2015-05-27 Thread Maxim Dounin
Hello! On Wed, May 27, 2015 at 05:08:52PM +0300, Дмитрий Шалашов wrote: > Hi! > > Is there a way to measure time Nginx takes to process request? Not > $request_time, but rather something like "time between request was fully > read and request is ready to pass it to the backend". > I need it to e

Fwd: Measuring request processing time

2015-05-27 Thread Дмитрий Шалашов
Hi! Is there a way to measure time Nginx takes to process request? Not $request_time, but rather something like "time between request was fully read and request is ready to pass it to the backend". I need it to evaluate perfomance of the geoip2 module: https://github.com/leev/ngx_http_geoip2_modul

Re: nginx on Debian: dynamic network interfaces

2015-05-27 Thread itpp2012
B.R. Wrote: --- > The keyword here is 'dynamic'. > > I even modified the service configuration to depend on 'named', but > the > thing is that being dynamic, the network and name resolution > dependency Why not simplify things, set nginx start t

Re: unknown directive "thread_pool"

2015-05-27 Thread Andrew Hutchings
Hi Richard, Do you have an Ubuntu package for Nginx installed also (usually installed in /usr/sbin)? Depending on how you are starting it the wrong executable may be being used. Kind Regards Andrew > On 27 May 2015, at 13:22, Richard Kearsley wrote: > > Hi > First time trying aio threads on

Re: Nginx and Websphere

2015-05-27 Thread Francis Daly
On Wed, May 27, 2015 at 07:27:25AM -0400, sampy wrote: Hi there, > What does "doesn't work" mean? > > web browser don't show the web and appears the error "webint don't exists > in DNS", but query arrives to the balanced server You see "webint", but you include "proxy_set_header Host $host;" i

Re: nginx on Debian: dynamic network interfaces

2015-05-27 Thread Maxim Dounin
Hello! On Wed, May 27, 2015 at 09:51:40AM +0200, B.R. wrote: > The keyword here is 'dynamic'. > > I even modified the service configuration to depend on 'named', but the > thing is that being dynamic, the network and name resolution dependency > might be fulfilled while the actual service is not

Re: nginx on Debian: dynamic network interfaces

2015-05-27 Thread Francis Daly
On Wed, May 27, 2015 at 09:51:40AM +0200, B.R. wrote: Hi there, > Is there really nothing you can do on your side about it? > It is a little tiresome to see both parts throwing the ball back. If nginx sees host names in particular places in the config file, it currently chooses to resolve them a

unknown directive "thread_pool"

2015-05-27 Thread Richard Kearsley
Hi First time trying aio threads on linux, and I am getting this error [emerg] 19909#0: unknown directive "thread_pool" in /usr/local/nginx/conf/nginx.conf:7 Line7 reads: thread_pool testpool threads=64 max_queue=65536; Everything indicates it was built --with-threads, so I'm not sure where

Re: Nginx and Websphere

2015-05-27 Thread sampy
Hi Francis, What does "doesn't work" mean? web browser don't show the web and appears the error "webint don't exists in DNS", but query arrives to the balanced server What response do you get? "webint don't exists in DNS" but as I know "webint" is only a variable or a name for the upstream W

Re: nginx on Debian: dynamic network interfaces

2015-05-27 Thread Konstantin Pavlov
On 27/05/2015 10:51, B.R. wrote: > The keyword here is 'dynamic'. > > I even modified the service configuration to depend on 'named', but the > thing is that being dynamic, the network and name resolution dependency > might be fulfilled while the actual service is not ready yet. Those > dependenci

Re: nginx on Debian: dynamic network interfaces

2015-05-27 Thread B.R.
The keyword here is 'dynamic'. I even modified the service configuration to depend on 'named', but the thing is that being dynamic, the network and name resolution dependency might be fulfilled while the actual service is not ready yet. Those dependencies might (dis)appear following this 'hot-plug