Skip to main content

GeoffStratton.com

  • About/Contact
  • GitHub
  • LinkedIn

Tag: Nginx

Nginx: Redirect All HTTP and HTTPS non-WWW to HTTPS WWW

July 2, 2018March 16, 2022 Geoff Stratton Leave a comment

One common requirement for a web site, especially in the age of mandatory SSL, is to ensure that its address is a) consistent, and b) forwards to SSL. In other words, when a visitor types in http://www.mysite.com/, http://mysite.com/, OR https://mysite.com/, they should be sent to https://www.mysite.com/. To do this, we’ll set up some Nginx server […]

Loading

Read More

Free SSL Certificates with Let’s Encrypt (Ubuntu 16)

April 18, 2018March 16, 2022 Geoff Stratton Leave a comment

Running a secure web site provides a better experience for anyone using your site. These days (2018), search engines also favor web sites that use SSL/HTTPS, so utilizing SSL is an important aspect of SEO. But buying a new SSL certificate every couple of years can get expensive, particularly if you run multiple web sites […]

Loading

Read More

Installing an SSL Certificate on Nginx

April 14, 2017March 16, 2022 Geoff Stratton Leave a comment

Update April 2018: I’d suggest using Let’s Encrypt for this instead. How to create and install an SSL certificate for Nginx 1.10 on Ubuntu 16. (Apache setup here.) This setup also gets you an A on the SSL Labs SSL Server Test. Part I: Create and Obtain your SSL Cert 1. Create your key and […]

Loading

Read More

WordPress: Optimizing Nginx and WP Super Cache

October 18, 2016March 16, 2022 Geoff Stratton Leave a comment

Today we’re going to compare the performance of a WordPress site before and after we install and optimize the WP Super Cache plugin. We’re running Ubuntu 16.04 Server, Nginx 1.10, PHP 7 with the Zend OPcache, MariaDB, and WordPress 4.6 with a few other plugins (Akismet, Jetpack, Yoast SEO, and Google Analytics). The system itself […]

Loading

Read More

Recompile Nginx (1.9+) Installed with Apt On Ubuntu 16.04

August 4, 2016March 16, 2022 Geoff Stratton Leave a comment

As mentioned in my older article on the subject, for many years Nginx had no hook for dynamically adding new modules, which meant having to recompile Nginx to add functionality. But the Nginx company has worked to address that issue: as of version 1.9.11, Nginx supports dynamic module loading. Still, there may be cases where […]

Loading

Read More

Install the Latest Nginx From Source on Ubuntu 16.04

August 4, 2016March 16, 2022 Geoff Stratton Leave a comment

So you want to install Nginx from source on Ubuntu. However, you want Nginx to work like you had installed it with the package manager. This means the startup file (/etc/init.d/nginx), binary (/usr/sbin/nginx), config directory (/etc/nginx/) and log files (/var/log/nginx/) will all be found in the usual Debian/Ubuntu locations. Fortunately this is pretty easy to […]

Loading

Read More

Ubuntu 16.04 Web Server with Nginx, MariaDB, Redis, and Drupal 8

July 10, 2016March 16, 2022 Geoff Stratton Leave a comment

As mentioned in my Ubuntu 16.04 and Drupal 7 article, the Ubuntu 16 LTS version has some nice upgrades, including PHP 7, MySQL 5.7, Nginx 1.10, Apache 2.4.18, and MariaDB 10.0.x. Let’s see if we can make it work with Nginx, PHP-FPM, MariaDB, and Drupal 8, using the Redis key-value store as the backend cache […]

Loading

Read More

Ubuntu 16.04 Web Server with Nginx, MariaDB, Redis, and Drupal 7

April 21, 2016March 16, 2022 Geoff Stratton Leave a comment

The Drupal 8 version of this article can be found here. As of today, April 21, 2016, Canonical has released Ubuntu 16.04 Server, supported until 2021. Ubuntu 16.04 has some nice enhancements, and some changes that will affect sysadmins and developers: it ships with Python 3 as the default Python, plus PHP 7, MySQL 5.7, […]

Loading

Read More

Web Server Performance 2016

March 9, 2016March 16, 2022 Geoff Stratton Leave a comment

This is a shorthand summary of web server performance and caching systems as of March 2016. General disclaimer: I try to link benchmark results that seem relatively neutral, but as with any survey or study or benchmark roundup, the most pertinent question is cui bono? Ultimately the only reliable benchmarks are those you run yourself […]

Loading

Read More

Nginx + PHP-FPM + PHP Cache + SSL + Varnish + Drupal

August 18, 2014March 16, 2022 Geoff Stratton Leave a comment

Note: The below instructions are for Varnish 3 on Ubuntu 12. If you want to run Drupal with Varnish 4 on Ubuntu 16, updated instructions are here. So, you want to set up Nginx and Drupal with all the bells and whistles on Ubuntu Server 12.04. You want caching for both PHP and Varnish and […]

Loading

Read More

Posts pagination

1 2 Older posts

About

This is the home server of Geoff Stratton. There's a little more about me on the About page. The server itself lives in Softlayer's DAL02/06 data center in downtown Dallas, Texas, geolocation 32 47 32.599 N 96 48 53.11 W 125m 10m 100m 10m.

I use this place mostly as a personal knowledge base, although I keep it public in case anything useful emerges. Caveat emptor, and don't go handling snake-skin.

Consider everything posted here to be covered by the GNU Public License Version 3. You should read the whole license, but essentially it means you can do anything you want with the code, including bundle it up and sell it as a new application. The catch is that if you make and distribute a new app, you are required to make all the source code available for free to everyone.

Tip Jar

Did you find something useful here? Please consider a tip. Many thanks!


Buy Me A Coffee


Categories

Tags

Ansible Apache awk Bash C# CentOS Debian DNS Docker Drupal Drush Fedora grep Hardware Hosting IP JavaScript jQuery LDAP Linux Mail Server mtr MySQL Nginx OTRS Perl PHP Plone Pound Python Redis sed SpamAssassin SQL SSL tcpdump TrueCrypt Tutorials ufw Varnish VB.NET Webform Windows WordPress Zope

Archives

sparkling Theme by Colorlib Powered by WordPress