Posts belonging to Category 'others'
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 »
January 14, 2011 | Posted by linus
#!/sbin/runscript opts="${opts} stop start" depend() { need net use dns logger netmount after ntpd } DJANGO_SITE="serviceMgmt" SITES_PATH=/www/app/web RUNFILES_PATH=$SITES_PATH/run RUN_AS=django PYTHON_EGG_CACHE=/tmp export PYTHON_EGG_CACHE start() { ebegin "Starting django-fgci" chmod -R 777 $SITES_PATH if [ -f $RUNFILES_PATH/$DJANGO_SITE.pid ]; then ewarn "Django already running ($RUNFILES_PATH/$DJANGO_SITE.pid)" else start-stop-daemon –start \ –pidfile $RUNFILES_PATH/$DJANGO_SITE.pid \ –chuid $RUN_AS \ –exec /usr/bin/python $SITES_PATH/$DJANGO_SITE/manage.py [...]
Categories: others |
Tags: django, Http, OS |
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 »
August 24, 2010 | Posted by linus
Ceska Databaze Slov (T9) Pokud vase Nokia ma malou databazi slov pro vas mobil, zkuste si nainstalovat aplikaci Nokia Custom Dictionary, ktera umoznuje import/export uzivatelskeho slovniku. Nokia Custom Dictionary podporuje nasledujici telefony: Nokia N96, Nokia N95, Nokia N95 8GB, Nokia N82, Nokia N79, Nokia N78, Nokia E52 a dalsi… Staci si do mobilu nainstalovat jiz [...]
Categories: others |
Tags: Nokia, T9 |
1 Comment »