Re: Nginx Address is already in use

2017-07-31 Thread Raymundo Ramirez Mata
Hello everyone, I forgot to mention that I also installed the nginx plugin for certbot. Looks like when configuring the server block, it added 3 snippets, on of them was for nginx ssl configuration options, some of the I was already adding them double the listeners on the ssl port. Just

Re: connection error bit set to 1

2017-07-31 Thread Zhang Chao
Hello! Is there any network error in your connection? like connection reset by peer, maybe you can set the error log level as low as possible, then find the devil in the error.log. On 31 July 2017 at 22:46:12, Ortal (nginx-fo...@forum.nginx.org) wrote: Hello, I am writing a nginx module. I woul

Re: Nginx Address is already in use

2017-07-31 Thread Ekaterina Kukushkina
Hello, > On 31 Jul 2017, at 03:57, Raymundo Ramirez Mata > wrote: > > Hi, > > My nginx has stopped working, I upgraded and updated today, also purged mysql > and installed mariadb, so I don't know what might broke it. when i run > > sudo nginx I get: > > nginx: [emerg] bind() to [::]:80 fa

connection error bit set to 1

2017-07-31 Thread Ortal
Hello, I am writing a nginx module. I would like to know it which flow is the error filed of the connection set to 1, I am running a test which the nginx epoll call ngx_http_finalize_request with: r->connection->error = 1, this will terminate my request before I finished with my job. Thanks Post

Re: implementation of access.log with if condition

2017-07-31 Thread lifeisjustabout
Thanks for response, > Setup log rotation depending on size of logs or daily rotation. If I use log rotation would I still have access to all access data logs where I moved? >Instead of randomly restarting – do a config check and only restart if the config is valid (should also validate the log

Re: implementation of access.log with if condition

2017-07-31 Thread Lucas Rolff
> I don't want to locate logs on ssd main (hardrive /var/log/nginx/) which is > obviously smaller hard disk than my external sata hdd (/externalhdd/log/nginx/ Setup log rotation depending on size of logs or daily rotation. > I still want my website to operate after restart because every week ser

Re: implementation of access.log with if condition

2017-07-31 Thread lifeisjustabout
Thanks for the response. The reason why I want to implement this is because I have dedicated server and thanks to nginx everything is work perfectly so I don't need to check server everyday. I don't want to locate logs on ssd main (hardrive /var/log/nginx/) which is obviously smaller hard disk than

Re: implementation of access.log with if condition

2017-07-31 Thread Igor A. Ippolitov
Hello, As far as I know, it's impossible using Nginx. But you can archive the same result using only 'access_log' statement into 'permanent' location. Just mount your external drive 'nginx' directory over /var/log/nginx like: mount -o bind /externalhdd/log/nginx/ /var/log/nginx/ If it is u

implementation of access.log with if condition

2017-07-31 Thread lifeisjustabout
Hi I would like to implement if condition on access and error log. Prior to nginx restart I want nginx to look for first log path location eg. /externalhdd/log/nginx/example.com_access.log, if log doesn't exist use second path which is /var/log/nginx/example.com_access.log I have given like my exa

Re: Identifying "Writing" connections in status stub

2017-07-31 Thread Vlad K.
On 2017-07-30 20:03, Peter Booth wrote: During a busier part of the day, what is your minimum, median,99%, max requests per sec? Image's worth a thousand words :) https://pasteboard.co/GDs6JSz.png The peaks between days are API clients syncing data, they usually do it in the night (clients