Nginx

Related tags

How To HTTPS Secure Drupal 8 Running Nginx with Let's Encrypt on Ubuntu 18.04

May 15, 2020
Let's Encrypt have done some very good job, providing SSL certificates that everyone can use absolutely for free. Encrypted HTTPS websites should be default in 2020. I have been implementing HTTPS secure websites for years. Until now I mostly worked with Drupal 7 websites and for securing them I have been...

How To Enable Google Adsense ads.txt file for Drupal on Nginx

December 06, 2019
Around early September 2019, in my Google AdSense dashboard, I noticed a warning informing me to create a separate ads.txt file.  I followed the on-screen instruction and did what was asked. After two months (at the start of November) I noticed my earnings from Google AdSense have dipped more than half and...

How to block visitors from country NGINX + GeoIP Module

January 16, 2019
There are a couple of reasons why website administrators consider blocking visitors from particular countries or regions accessing websites, the most common reason probably is hacking/hacking attempts.  One really nasty way how website hackers act are, they inject malicious code into...

How To Fix "gzip is failing for js files" Nginx

July 02, 2018
From Drupal Reports status page I noticed gzip is failing for js files error The web servers configuration will need to be adjusted. In most cases make sure that the webroots .htaccess file still contains this section "Rules to correctly serve gzip compressed CSS and JS files". Certain default web server...

How To Redirect in Nginx all Domain Name Versions to https://www

June 19, 2018
As you might already know search engines (Google) sees www.domain.com and domain.com as two separate domain names. If you are not using 301 redirects (www to non-www or vice verse)you might get penalized for duplicate content.  In Ngnix, there is a simple solution how to make such redirect...

How To Fix: Error: Call to undefined function curl_init()

April 28, 2018
After upgrading from Ubuntu 12 to Ubuntu 16 I discovered an error for Drupal website sending e-mails using Mailsystem + Postmark here is the error code: Error: Call to undefined function curl_init() in Mail_Postmark->send() (line 322 of /srv/www/reinisfischer.com/public_html/sites/all/libraries/postmark-php...

Postfix Send Only SMPT Mail for Drupal 8 on Ubuntu 16.04, Nginx

May 03, 2017
If you have recently installed a fresh Drupal 8 site on Ubuntu 16.04 with Nginx running on it and you are getting Unable to send e-mail. Contact the site administrator if the problem persists notice after submitting contact form, you are missing an important element for your site to functions properly....

How To Password Protect Your site with Nginx on Ubuntu 14.04

October 23, 2016
I was working on a new customers website, and I was looking for ways to showcase current development stage to the client, meanwhile hiding contents from others. Sounds familiar? In this server series guide I will provide info how to set up basic HTTP authentication with Nginx on Ubuntu 14.04. Most details for this...

How to Upgrade from Ubuntu 12.04 to 14.04 LTS

September 18, 2016
In this article I will provide simple instructions on how to upgrade Ubuntu 12.04 to 14.04.  In fact I didn't wanted to push for a server upgrade for a while, but decided to do it now, and not to wait when things will break completely. In fact I was working on a Drupal 8 site development and wanted to have it...

How To Enable PHP Curl Ngnix (Good for Social share counters)

September 17, 2016
Today I was eager to install and enable really cool Drupal module for my blog - Social Share Counter, this module looked simple - all I had to do, just download, enable and a little bit tweak around. From module creator (s) This module gives the share counts for only Facebook,Twitter and more which has some...

How to Upgrade PHP 5.3 to 5.5.9 on Ubuntu 12.04 to Support Drupal 8

September 16, 2016
That day finally have come and I've officially started a new project on my first Drupal 8 website. While my first attempts were about two years ago, but due to the lack of time and will to explore new things and configure new servers I proceeded just tonight (after a conversation with a long time customer we...

LEMP Server Ubuntu 12.04 for serving Drupal on Nginx

July 09, 2016
In this tutorial you will learn how to setup a LEMP stack on Ubuntu 12.04 for serving a Drupal site (s). Update: I originally started this post to document my setup for actually configuring Nginx server on Ubuntu for Drupal site at the start of 2015. Many things have changed ,ever since, thus most of the...

How to Renew Let's Encrypt SSL Certificate

June 27, 2016
Free SSL certificates from Let's Encrypt certify are issued for a short 3 month term. I first enabled secure HTTPS pages around at start of 2016, and now it's time to renew SSL.  The following tutorial is written for Nginx, but should work for Apache as well (with minor modifications) Stop Nginx​ sudo...

Linode: How To Secure Nginx with Let's Encrypt on Ubuntu 12.04

February 06, 2016
Encrypted HTTPS websites are pretty much a hot topic nowadays. I have seen a lot noncommercial websites and blogs using HTTPS protocol lately.  I believe cheap prices for certificates and possible SEO boost from Google are pushing more and more to add HTTPS. Including me! In fact this article is...

How to Specify a Vary: Accept-Encoding header Nginx

July 11, 2015
The other day I visited tools.pingdom.com to test performance for my blog (the one you are currently reading) and I did fine I have a two bottlenecks: Remove query strings from static resources Specify a Vary: Accept-Encoding header I managed to handle query string issue for static resources and then I...