Nginx, stylized as NGINX, nginx or NginX, is a web server that can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache. The software was created by Igor Sysoev and publicly released in 2004. Nginx is free and open-source software.

How to redirect 404 to homepage in Nginx?


When a requested URL is not available or not found it’s advisable to redirect them to another URL or to a homepage that’s user-friendly. Nginx web server allows us to redirect off such 404 error pages to a custom URL, all we need to do is instruct Nginx’s site configuration to redirect such pages, and […]

How to fix “Specify a Vary: Accept-Encoding Header” warning?

While optimizing your website for website performance using tools (ex. GTmetrix), you’ll run into a “specify a vary: accept-encoding header” warning. What exactly does this mean? How can we fix this? In this tutorial, we’ll learn what’s the error and how we are going to resolve the issue. What is this warning? Accept-encoding header is […]

How to fix “No Input File Specified” error?

In a web server, let it be Apache or Nginx, if rewrite rules unable to touch the index file or root file, it shows an error of no input file specified. To fix this error we just need to locate the root location or file. For an instance, we have picked WordPress as a CMS […]

How to cache static content on Nginx?


Here in this post I’ll show you how to cache static content or files on Nginx. If you are not caching static content yet, tune it now, you’ll gain more speed just doing it. I’m assuming that you know the configuration directories and files of nginx and we can set the parameters in an http […]

Nginx Config (Explained by Example)

Image of NGINX, a web server.

Nginx configuration file located at /etc/nginx/nginx.conf has everything that makes a server flies or sinks. Below we have explained what each directive does. Let’s have a look and fine-tune your settings: Before we hit to configurations directly understand the structure first. HTTP Block: Global configurations. Server Block: Domain level configurations. Add inside the HTTP block. […]