Nginx PHP-FPM configuration


Here is my Nginx PHP-FPM configuration. It handles PATH_INFO correctly compared to most examples. It works in alias blocks. The .php location block: location ~ \.php(/.*)?$ { fastcgi_index index.php; fastcgi_pass unix:/var/run/www-php5-fpm.sock; fastcgi_buffers 32 4k; fastcgi_split_path_info ^(.+\.php)(/.+)$; include fastcgi_params; fastcgi…

Nginx configuration for Ghost


This blog runs Ghost. To make it faster I use the proxy caching features of Nginx. To make it more secure I use the SSL features of Nginx with a free SSL certificate from StartSSL. Here is my configuration: conf.d/domain.conf upstream nodejs { server 127.0.0.1…

Migrating ZFS pools between FreeBSD and SmartOS


Recently I migrated a few ZFS storage pools from FreeBSD to SmartOS. I found many potentially dangerous methods outlined on the web, when in fact migrating ZFS storage pools is quite easy. The trick is you must utilize zpool import -d <dir> combined with symbolic links to the…

An xkcd inspired password generator


This is just a little password generator I put together after reading the xkcd comic on password strength. The password is generated using client-side javascript, including using a cryptographically secure random generator on supported browsers. It includes additional features to adjust the length, including numbers, and capital letters to satisfy…