Tips / Nginx

Archive for Nginx Directives

How to Customize Nginx Web Logs

Web logs are one of the important keys to understanding how HTTP requests work in real life. They’re also a great tool to analyze and debug errors in your online applications. Nginx offers great login features, and today you will learn how to configure and customize Nginx logs to make them easy to read and understand. Customizing Nginx Logs […] Read more

Nginx Error_log Configuration

Nginx serves millions of applications on a daily basis, and those millions of apps generate errors. Guess what? So do yours. Some of them are critical, while others are just notices. The important thing here is to get access to those errors to debug and have a clear view of what’s happening with your web applications. […] Read more

How To Block User Agents Using Nginx

Nginx offers many ways to block unwanted traffic. You can use allow/deny rules or set a password protected directory. You can also get rid of bad bots and avoid attacks from HTTP user agents with GET or POST requests. Following are some examples to protect websites from common illegitimate connections. What is the user agent? The user agent […] Read more

Nginx Scripts & Modules for WHM/cPanel

Nginx has been adopted by many web hosting companies to increase server performance and speed up website response times. However, one of the main software leaders in the hosting industry still doesn’t fully support it. This native web server is WHM/cPanel. cPanel is the most popular control panel used by webmasters and developers. It allows you to set […] Read more

Create a Custom HTTP 503 Maintenance Page Using Nginx

The HTTP 503 error code is simply a temporary service not available maintenance error. The 503 error is used to let customers and visitors know that you are facing temporary technical problems. This situation is common when you are out of service because your system is  overloaded or down for scheduled maintenance. Luckily, on Nginx, you can customize […] Read more