Deny referrer using map directive

2015-05-03 Thread Dewangga
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello! I have a map directive like this : map $http_referer $badboys { hostnames; default 0; "~*hitleap.com" 1; } and already defined on server block like this : server { .. skip .. if ($badboys) { return 40

Re: Installed nginx with iredmail; how to add web content & test without DNS change

2015-05-03 Thread gariac
Thanks halozen and Francis. Knowing where to read in the manual is half the battle. I think I will tackle combining the iredmail code into my own website since at the moment I only have one domain I am going to put on this server. With flexibility comes head scratching. It seems like nginx has t

Module : showing content of the folder

2015-05-03 Thread goldfluss
Hello, I'm trying to develop a small module for nginx that verify the url. If it's not valid, I return NGX_HTTP_FORBIDDEN in the handler and that works fine. But if url is correct i want to send the content of the location to the client. I tested to return different values, but it doesn't work (The

error running shared postrotate script

2015-05-03 Thread Paul N. Pace
Ever since upgrading to 1.8.0 I get the following report from Cron: /etc/cron.daily/logrotate: error: error running shared postrotate script for '/var/log/nginx/*.log ' error: error running shared postrotate script for '/var/ www.example.com/logs/*.log ' run-parts: /etc/cron.daily/logrotate exited

Re: error logging with nginx and uWSGI

2015-05-03 Thread Maxim Dounin
Hello! On Fri, May 01, 2015 at 12:04:51PM -0400, Larry Martell wrote: > Prior to now, all the django projects I've worked on have used apache > and WSGI. With those, when an error occurred I went to > /var/log/httpd/error_log and details of the error were clearly there. > > Now for the first tim

Re: Windows build failing - NMAKE : fatal error U1073

2015-05-03 Thread Maxim Dounin
Hello! On Sat, May 02, 2015 at 03:52:50PM -0300, Thiago Farina wrote: > On Sat, May 2, 2015 at 1:48 PM, Maxim Dounin wrote: > > Hello! > > > > On Sat, May 02, 2015 at 01:51:20PM +1000, Alec Taylor wrote: > > > >> Following your guide: http://nginx.org/en/docs/howto_build_on_win32.html > >> > >>