Tag: nginx

How to Enable HTTP/2 in Nginx on Ubuntu and CentOS

HTTP/2 is a major revision of the HTTP network protocol and it focuses on performance improvements. Its goal is to reduce the latency as well as to make the web applications faster by allowing multiple concurrent requests between the web browser and the server across a single TCP connection. In this tutorial, we are going […]

How to Redirect HTTP Traffic to HTTPS in Nginx and Apache

In this tutorial, we will show you how to redirect HTTP traffic to HTTPS in Nginx and Apache. You should always use HTTPS instead of HTTP to protect your website, even if it doesn’t handle sensitive communications. The main reasons to use HTTPS are: Security – this is the main and most important reason to […]

How to Set up Nginx Server Blocks on Ubuntu and CentOS

In this tutorial, we are going to provide you with step by step instructions on how to set up nginx server blocks on an Ubuntu 16.04 VPS and on a CentOS 7 VPS. Nginx server blocks are often used to run multiple websites on a single IP address. Note that this tutorial is for Nginx […]

nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)

Problem Description: address has been used. The nginx service card may be dead, causing the port to take up, and this error occurred. First, look at the 80 port under lsof:80 what procedures are occupied. Lsof returns as follows: lsof -i:80 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME httpd 1203 root 4u IPv6 […]