-e vs -f and -d

2017-12-11 Thread drook
Hi, Considering that I don't have symbolic links why do these configs work differently ? ===config one=== if (!-f $request_filename) { rewrite ^/(.*)$ /init.php; } if (!-d $request_filename) { rewrite ^/(.*)$ /init.php; } ===config one=== This one above works, rewrite happens. Being cha

no live upstreams and NO previous error

2016-09-14 Thread drook
Hi. I've set up a multiple upstream configuration with nginx as a load balancer. And yup, I'm getting 'no live upstreams' in the error log. Like in 1-3% of requests. And yes, I know how this works: nginx is marking a backend in an upstream as dead when he receives an error from it, and these error

nginx and HLS

2016-05-23 Thread drook
Hi. I see there's a ngx_http_hls_module for HLS, but seems like it's for video content, and I need to serve static mp3/audio files with nginx, prividing some adaptive bitrate adjustment. Is it possible with nginx ? Thanks. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,267073,267073#

Re: nginx, solaris, eventport

2013-08-01 Thread drook
I have also a cacti graph, representing the state of tcp connections for the period of the accident: http://unix.zhegan.in/files/tcp_connections.png looks like handshakes were fine, but the the exchange was stalled for each stream. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,240568

Re: nginx, solaris, eventport

2013-07-31 Thread drook
Hi. I finally managed to catch this situation. I have a log from nginx running the following config: worker_processes 8; worker_rlimit_nofile 16384; error_log /var/log/nginx/error.log debug; pid /var/run/nginx.pid; events { worker_connections 1024; use eventport;

Re: listen directive

2013-07-25 Thread drook
Actually, I've read carefully this part of the manual before creating this topic. I still think the quoted passage explains nothing about virtualhost handling. It doesn't explain that skipping address or port will result in what I prefer to call "less prioritized vhosts". May be it's obvious from t

Re: listen directive

2013-07-25 Thread drook
Thanks a lot, this is much clearer. Actually, 'absent "listen", or "listen" without both a port and address, assume the default values for the missing parts' explains everything, and I think the manual would be more clear mentioning this explicitly (still imo). Posted at Nginx Forum: http://forum

Re: listen directive

2013-07-25 Thread drook
Thanks, I have read this carefully, but this hasn't become more clear for me - all the examples contain the IP defined, what about undefined IP (which, as I understand, means "listen to this port everywhere") ? Does it receive less priority ? Plus, in my case server_name is defined too. I'm not com

listen directive

2013-07-25 Thread drook
Hi. I've noticed that in configuratuion like http { server { server_name some.domain.tld; listen 1.1.1.1; } server { server_name another.domain.tld; listen 1.1.1.1; } server { server_name one_more.domain.tld *.domain.tld; listen

nginx, solaris, eventport

2013-07-03 Thread drook
Hi. I'm using nginx on Solaris for years. For years I've been experiencing errors when eventport is on (with /dev/poll everything is fine, but I'm kinda perfectionist and I want to use native solaris features). I realize that screaming "help with eventport" is counter-productive, so how can I loc