Posts Categorized: Nginx

Fixing 504 Gateway Time Out (Nginx & PHP5-FPM)

Since upgrading the server from Ubuntu 12.04 to 14.04 a couple of months ago, we ran into this problem: ‘lfd on High 5 minute load average alert‘. Because, during the upgrade, some files were replaced with newer versions such as PHP5-FPM’s php.ini file, not all of our server configurations were exactly as they had

Using an Nginx Rewrite to Add Trailing Slashes to Your URLs

rewrite ^([^.]*[^/])$ $1/ permanent; Add to your server block. This line will add a trailing slash o the end of your URLs, as long as they don’t contain a period (for things like static assets), and if it does not already have a trailing slash. This is a handy way to improve SEO by redirecting

PHP5-FPM and Nginx White Screen

Ah, the infamous white screen of death. After doing some server and package upgrades, I ran across the problem of a blank screen being generated when trying to access the websites located on the server. None of the configuration files were changed, I had simply upgraded some packages and kept my settings intact. After checking

XenForo in a Subdirectory (Nginx)

 For one of my recent projects, I needed to use WordPress and XenForo — with WordPress sitting at the root and XenForo in a subdirectory called community. Here’s the config file that I used to successfully install XenForo in a subdirectory. It’s really simple. ## ## # Subdirectory for XenForo # ## ## location

Upgrading Your Version of Nginx

When you’re on an LTS (Long Term Support) version of Ubuntu, such as 12.04 or 14.04, the repositories that are included may not be fully up-to-date. Using Ubuntu 12.04, the version of Nginx that comes in the source package is 1.1.19, while the latest stable version at the time of this writing is 1.6.0. You

Getting SSL Enabled With Nginx

After setting up our mail server and enabling SSL, we decided that it would be best to do so with our primary website as well. SSL is the acronym for Secure Sockets Layer and is a technology used to encrypt the connections between a web server and a browser. You can tell if a website

Getting Textpattern to Work With Nginx

If you’re thinking about giving these two a go with each other, this little snippet may help you out. Open up or create the file for your website that goes into the sites-available directory and add the below along with what you have so far. Make sure to change the socket to TCP if that’s