Exclusive Metin2 game shield on FreeBSD: Automatic siege mode, VIP list, and whitelist from your dashboard. See how it works
Create a server
Xernode/ Blog/#nginx

Blog

#nginx

Posts tagged with “nginx”.

How to Limit Requests in Nginx (Rate Limiting)

  • Xernode
  • 4-minute read
  • nginx

A bot that brute-forces passwords on your login form or a client that constantly calls your API can overload PHP or the database. Nginx can limit the number of requests it accepts from each IP address and respond with a 429 error to the rest, before they reach your application. In this guide, you’ll secure your login and API and test them without blocking anyone.

How It Works

… Read the complete guide

How to Analyze Nginx Logs with GoAccess

  • Xernode
  • 3-minute read
  • nginx

The Nginx access log records every request your website receives, but reading it manually means going through thousands of lines. GoAccess turns it into a report showing visitors, most-viewed pages, error codes, browsers, and the IP addresses that make the most requests. It doesn’t require JavaScript on your website or external services—it works directly with the log on your server.

1. Install it

… Read the complete guide

How to Enable the Nginx FastCGI Cache for WordPress

  • Xernode
  • 4-minute read
  • nginx

WordPress generates each page using PHP and multiple MySQL queries, even if the page is identical for all visitors. The Nginx FastCGI cache stores the pre-generated page and serves it directly on subsequent visits, without going through PHP. For public pages, the response time typically drops from hundreds of milliseconds to just a few.

Is this cache useful to you?

… Read the complete guide

How to Set Up a WebDAV Server

  • Xernode
  • 1-minute read
  • nginx

WebDAV mounts a remote folder like a drive (Windows/macOS/Linux clients). Nginx is quick; for a full personal cloud use Nextcloud.

Steps

  1. Install Nginx and auth tools:

    sudo apt update
    sudo apt install -y nginx apache2-utils
  2. Create the folder and an htpasswd user:

… Read the complete guide

How to Set Up a Reverse Proxy with Nginx

  • Xernode
  • 1-minute read
  • nginx

A reverse proxy terminates HTTPS on 443 and forwards to your app on localhost:3000 (or another port). Nginx is the usual choice.

Steps

  1. Install Nginx:

    sudo apt update
    sudo apt install -y nginx
  2. Create a site (example to 127.0.0.1:3000) under /etc/nginx/sites-available/app and enable it.

… Read the complete guide

How to Set Up Let’s Encrypt SSL Certificate

  • Xernode
  • 1-minute read
  • Web Hosting

Introduction

Let’s Encrypt provides free SSL certificates, making it easy to secure your website with HTTPS. This guide shows you how to install a Let’s Encrypt SSL certificate on your server using Certbot.

Step-by-step Guide

  1. Update your package list and install Certbot
    • For Nginx:n
      • sudo apt update
      • sudo apt install certbot python3-certbot-nginx
… Read the complete guide

How to Install the Nginx Web Server

  • Xernode
  • 1-minute read
  • nginx

ginx is a light web server and reverse proxy. Install it and confirm it answers.

Steps

  1. Install Nginx:

    sudo apt update
    sudo apt install -y nginx
  2. Enable and start the service:

    sudo systemctl enable --now nginx
    sudo systemctl status nginx

Tips

… Read the complete guide