Desinerd : Dipankar's Blog

New book : Nginx web server cookbook

Published: in Personal, , , by . Leave a Comment on New book : Nginx web server cookbook.

Guys after a long break, I have come out of my slumber to talk about my first publication with Packt publishing. In short the book is about tips and tricks around the upcoming Nginx web server. You can check it out using this link. This has been published by Packt publishing, a UK based technical […]

Jailed in FreeBSD

Published: in Technical, , , , , , , by . 2 Comments on Jailed in FreeBSD.

Well, working on freeBSD right now some immediate learnings for most linux users Ports is as good as apt-get [and i would say much better, when i started installing stuff] You will need to start with installing vim and bash to make your life a lot easier So the target was to install python and […]

Nginx upload module – efficient uploads

Published: in Technical, , , , by . Leave a Comment on Nginx upload module – efficient uploads.

I was just having a look at some forums and saw some people talking about how to handle large parallel uploads. I have been having a look at this plugin which comes with NGINX and played around with it. Extremely useful if you use nginx in your stack and are getting killed by massive uploads. […]

Nginx + django fcgi lessons

Published: in Technical, , , , , , , , , , , , by . 2 Comments on Nginx + django fcgi lessons.

Today was a good day as i learned some valuable lessons about django and nginx. ALWAYS close the database cursor in django, it can lead to some pretty wierd memory issues going forward. FIND the most optimal number of database connections you initialize for you connection pooling. This will let you optimize on memory going […]

PHP + nice URLS + nginx

Published: in Technical, , , , , , , , by . Leave a Comment on PHP + nice URLS + nginx.

Easiest way to get php with good looking urls running on your site . Works for drupal, wordpress and joomla. server { listen 80; server_name; index index.html index.htm index.php; root /path/to/domain/files; location / { error_page 404 = //e/index.php?q=$uri; } location ~ .php$ { include fastcgi_params; fastcgi_pass; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /path/to/domain/files$fastcgi_script_name; } access_log […]

CodeIgniter + nginx : Facebook application

Published: in Technical, , , , , , , by . Leave a Comment on CodeIgniter + nginx : Facebook application.

This is a basic tutorial on how to get CodeIgniter facebook application on nginx (with the gotchas). The nginx configuration would be like the following server { listen 80; server_name; location ~ /index.php/ { root /home/production/blah; index index.html index.htm index.php; include conf/fcgi.conf; fastcgi_param SCRIPT_FILENAME /home/production/fb_apps/quickdate/index.php; fastcgi_pass; } access_log /usr/local/nginx/logs/blah.access_log; error_log /usr/local/nginx/logs/blah.error_log; } The […]