January 14, 2011 | Posted by linus
user nginx nginx; worker_processes 1; error_log /www/log/error-ssl.log; pid /var/run/nginx-ssl.pid; events { worker_connections 16; } http { include mime.types; default_type application/octet-stream; log_format main '"$host" "$request" "[$time_local]" "$bytes_sent"'; access_log /www/log/access-ssl.log main; ## General Options ignore_invalid_headers on; sendfile on; server_tokens off; gzip on; keepalive_timeout 65; server { listen 443; server_name linux-sysadmin.org; ssl on; ssl_certificate /www/ssl/linux-sysadmin.org.crt; ssl_certificate_key /www/ssl/linux-sysadmin.org.key.unsecure; ssl_client_certificate /opt/nginx/conf/ssl/ca.crt; ssl_verify_client on; access_log /www/log/linux-sysadmin.access-ssl.log main; location / { fastcgi_pass unix:/www/app/web/run/serviceMgmt.socket; # necessary parameter [...]
Categories: others |
Tags: django, Http, Nginx, ssl |
No Comments »
December 23, 2010 | Posted by linus
Best way for NGINX logs rotation I wanted rotate access logs every minute without HUP signal or reopen utility. Why? Because, i wanted fluently write into logs and logs must contain access for 1 minute. I didn’t want call reopen utility and then move file, because i moved files from quick (heap) storage to slow [...]
Categories: others |
Tags: Http, log, logs rotation, Nginx, patch |
No Comments »
December 23, 2010 | Posted by linus
Description: Patch for rotating access logs every minute Download: bbcdnTime0.8.53.patch Installation: 1, download patch 2, download nginx 0.8.53 3, extract nginx and go to the src dir 4, call patch: patch -p0 -i <path_to_dir_where_is_patch>/bbcdnTime0.8.53.patch 5, set in your nginx.conf something like this (keyword is $date_bbcdn) : access_log /logdir/access_$date_bbcdn.access.log log; and then you can see access [...]
Categories: tools |
Tags: log, logs rotation, Nginx, patch |
No Comments »
August 24, 2010 | Posted by linus
I wrote script which can purge your content directly from binary files in proxy_cache_path. Everything what you have to do is set your CACHE_DIR variable in script. Script will find your proxy cache key in binary files. After this you will have options for purging this file. This purge script was wrote in bash, so [...]
Categories: tools |
Tags: Nginx |
10 Comments »
August 24, 2010 | Posted by linus
This script analyze access log from Nginx server. This aplication shows result which contain info about the longest request shorted by status, size and request. It helps for right setting of your server. It could help if you use Nginx as CDN server. You can download it from: nginxLogReport
Categories: tools |
Tags: Http, Nginx |
No Comments »