Category: NGINX

March 5, 2015

Match location based on file extension with NGINX

The information in this post is based on NGINX 1.4.6 running on Ubuntu Server 14.04 x64. It may or may not be valid for other versions. I’m not all that good at regular expressions (something I should probably work on, I know), so I often need to read up on it when I have to […]

Read More

March 4, 2015

Deleting NGINX cache puts critical unlink errors in error log

The information in this post is based on FastCGI caching on NGINX 1.4.6 running on Ubuntu Server 14.04 x64. It may or may not be valid for other versions. After migrating several sites from Apache to NGINX I have grown very fond of its built-in caching capabilities, which works extremely well under most circumstances without […]

Read More

March 3, 2015

FastCGI PHP_VALUE settings leaking to other sites on NGINX with PHP-FPM

The information in this post is based on NGINX 1.4.6 and PHP-FPM 5.5.9 running on Ubuntu Server 14.04 x64. It may or may not be valid for other versions. Background I was recently setting up a new website on a server that had a couple of other sites on it already. The server and all […]

Read More

March 3, 2015

How to set up separate PHP-FPM pools in NGINX

The information in this post is based on NGINX 1.4.6 and PHP-FPM 5.5.9 running on Ubuntu Server 14.04 x64. It may or may not be valid for other versions. There are a number of advantages to setting up multiple PHP-FPM child process pools rather than running everything in the same pool. Security, separation/isolation and resource […]

Read More