The plugin Better WordPress Minify is a great plugin for handling CSS and JS merging and minification. I’ve been using it for years now but just noticed today that there’s a weird header being emitted on some of my sites. Pragma: no-cache; What!?! No, please cache! Turns out it (probably) wasn’t…
Category: nginx
Authorize.Net, DPM, relay response and TLS 1.0
I think I lost almost 8 hours to this. We have an app that integrates with Authorize.Net via DPM and no matter what I did I couldn’t get the relay response to work. The app was working fine last year, the only change (I thought) was that this year I…
SimpleSAMLphp + Nginx
Ugh, this was weeks in the making. I want to use SimpleSAMLphp but I prefer Nginx over Apache. As of right now I can’t find any official documentation for installing on Nginx but they say it should work and shouldn’t be too hard. There’s a couple of threads out there but they…
Varnish as a frontend for a remote WordPress install – Part 2
Part of this setup Nginx, MySql, PHP and WordPress. This part is for configuring Varnish 4.0 on Ubuntu 14.04 On varnish.chris.example.com Install Varnish 4.0 Add Varnish’s GPG key curl https://repo.varnish-cache.org/ubuntu/GPG-key.txt | sudo apt-key add – Add the source location echo “deb https://repo.varnish-cache.org/ubuntu/ trusty varnish-4.0” | sudo tee /etc/apt/sources.list.d/varnish-cache.list Update local cache…
Varnish as a frontend for a remote WordPress install – Part 1
This tutorial assumes two sites, varnish.chris.example.com and web.chris.example.com. Both of my test sites will be created on DigitalOcean but on separate instances. Both will be running basic Ubuntu 14.04. On web.chris.example.com Install Nginx Add the dev repo so that we can get to 1.7.x: sudo apt-add-repository ppa:nginx/development sudo apt-get update Verify…
Nginx as a frontend for Elasticsearch on Ubuntu 14.04
Many of these steps come from this wonderful blog post here. Follow steps one through six here for installing Nginx. Install Java, either OpenJDK (#1) or Oracle Java (#2) apt-get install openjdk-6-jre sudo add-apt-repository ppa:webupd8team/java apt-get update sudo apt-get install oracle-java7-installer Test that Java is installed: java -version Download the deb file…
Nginx Optimal SSL settings on Ubuntu 14.04
Below is how to configure Nginx for optimal SSL settings. These settings are directly from Mozilla’s recommend best practice page and were current as of the date of this post. Please refer to that site for the most current settings. This post assumes that you already have a and you…
Nginx variable expansion in error_log for virtual hosts/servers
If you’re hoping to use an include for logging of virtual hosts (servers) in Nginx : include global/logging.conf so you can just do this in your server blocks, don’t keep your hopes up. access_log /home/me/sites/$server_name/logs/access.log; error_log /home/me/sites/$server_name/logs/error.log; According to this email thread, variable expansion for the error_log directive is not supported….
HHVM White Screen of Death
I’m bringing up a new server and decided to give HHVM a shot for PHP processing. Having watched WordPress’s trac for several years now I’ve seen a couple of small and some very large things that needed to be changed in order for WordPress to run without issue. But now it seems to be…
Ubuntu 14.04 + Nginx 1.7.1 + HHVM 3.2
This is very similar to my previous post except I’m starting from a raw Ubuntu 14.04 server install. Download and install Ubuntu 14.04 Server and don’t install any additional packages (you can and they’ll probably work but I didn’t and this tutorial assumes you didn’t). Update sudo apt-get update sudo apt-get upgrade Add a…