Web Dev

Web development is the work involved in developing a website for the Internet or an intranet. Web development can range from developing a simple single static page of plain text to complex web applications, electronic businesses, and social network services. Let’s build the future of the web, together. Take advantage of the latest modern technologies to build amazing web experiences for everyone.

How to redirect 404 to homepage in Nginx?

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?

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 […]

Default NGINX Configuration

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. […]

How to reduce Time to First Byte (TTFB)?

DevTools: Waterfall

For anyone, a fast website makes a noticeable difference. Even search engines like Google and Bing appreciate faster websites compared to the slower ones. But when it comes to rankings, yes a fast website makes a small difference. Note that engaging content is still a ranking factor, just fast site speed will never going to […]

NetworkError: Failed to execute ‘send’ on ‘XMLHttpRequest’

NetworkError: Failed to execute 'send' on 'XMLHttpRequest'

Recently we enhanced our security headers and started facing ‘error in processing request’ in ajax calls. Error text: NetworkError: Failed to execute ‘send’ on ‘XMLHttpRequest’: Failed to load ‘http://masked.url/ajax.php’. (rejected) It seems that the connection to the server has been lost. Please check your network connectivity and server status. After troubleshooting, we found that there […]

How to fix 403 forbidden in Nginx?

403 Forbidden

What does “403 forbidden” in Nginx mean? 403 forbidden in the Nginx web server means “a requested resource could not be served”. It could be intentional or unintentional. It is not en error but an HTTP status which occurs in the following cases: The user has blocked the resources or site as a whole. The […]

How to Configure FastCGI Cache with Nginx?

WordPress on NGINX with FastCGI Cache

Nginx has obtained traction from webmasters due to its low-resource and high-performance feature. Although the default configuration of Nginx is already optimized for all the basic workloads; still you can take it to the next level by setting up a server-side cache. Our Previous Tutorials: How to Install LEMP (Linux, Nginx, MariaDB, PHP) on Debian […]

How do I protect my website from getting hacked?

Hacked

Being in a digital marketing industry I support many clients to set up their blogs and website, and they often ask me how can I protect my website from getting hacked? I always say, it is your Karma that pays you back, how? Let’s understand it. Initially, everything goes perfect for everyone, they get a […]