Nginx + Varnish Wrong Port With Redirects

I recently switched my blog and many of my sites over to a new server stack, with Varnish running in front of Nginx + PHP-FPM. I noticed an issue however. When requesting a path like: http://brandonwamboldt.ca/assets, I was being redirected to http://brandonwamboldt.ca:8000/assets/. This alone took me a few minutes to discover, as the original problem […]

Multiple Directories w/ PHP open_basedir

I’ve been using PHP’s open_basedir function since I first setup my server, several years ago. It’s a really useful function for securing your servers, although it isn’t perfect. For years, I’ve had problems with the temporary directory not being accessible. Of course, it was a simple fix to use php_admin_value     open_basedir /var/www/vhosts/saebermedia.com php_admin_value     upload_tmp_dir /var/www/vhosts/saebermedia.com/.tmp […]