Tutorials

Tutorial

Nginx Security Hardening on Ubuntu and Debian

Harden Nginx beyond its defaults with security headers, TLS 1.3, HSTS, method restrictions, and access controls. Each directive is tied to the specific attack it prevents.

11 min readRead
Tutorial

Secure n8n with Nginx Reverse Proxy, TLS, and Security Headers

Put your self-hosted n8n behind Nginx with Let's Encrypt TLS, security headers, rate limiting, firewall rules, and webhook protection. Every step includes a verification command.

13 min readRead
Tutorial

Nginx Rate Limiting and DDoS Protection

Configure Nginx rate limiting with limit_req, limit_conn, and fail2ban to protect your server from brute-force attacks and application-layer DDoS without relying on third-party services.

10 min readRead
Tutorial

Nginx Performance Tuning on a VPS

Tune Nginx for production traffic on a Linux VPS. Covers worker processes, compression, caching, HTTP/2, TLS optimization, kernel sysctl, and benchmarking with wrk.

12 min readRead
Tutorial

Install and Configure Fail2Ban on a Linux VPS

Set up Fail2Ban to block brute-force attacks on SSH and Nginx. Covers UFW and nftables ban actions, custom jails, recidive escalation, and filter testing on Ubuntu 24.04 and Debian 12.

12 min readRead
Tutorial

Build and Self-Host a Custom MCP Server on a VPS

Build a TypeScript MCP server from scratch, deploy it on a VPS with systemd, and run it behind Nginx with TLS. Connect Claude Desktop, Claude Code, and Cursor to your self-hosted server.

11 min readRead
Tutorial

Deploy OpenClaw Securely on a VPS

Install and lock down OpenClaw on a VPS with gateway authentication, TLS reverse proxy, Docker sandboxing, firewall hardening, and systemd isolation. Step-by-step with security hardening included.

14 min readRead
Tutorial

Set Up Let's Encrypt SSL/TLS for Nginx on Debian 12 and Ubuntu 24.04

Obtain and auto-renew free TLS certificates with Certbot for Nginx on Debian 12 or Ubuntu 24.04. Covers DNS setup, Certbot installation, HTTP-to-HTTPS redirect, TLS hardening, HTTP/2, HSTS, and the OCSP discontinuation.

11 min readRead
Tutorial

Nginx Server Blocks: Host Multiple Domains on One VPS

Configure Nginx server blocks to serve multiple websites from a single VPS. Two full domains, secure defaults, per-site logging, and complete verification included.

9 min readRead
Tutorial

Install Nginx on Debian 12 and Ubuntu 24.04 from the Official Repository

Install Nginx from the official nginx.org repository on Debian 12 or Ubuntu 24.04. Covers signing key setup, apt pinning, firewall rules for both UFW and nftables, systemd management, and verification after every step.

7 min readRead
Tutorial

How to Configure Nginx as a Reverse Proxy

Configure Nginx as a reverse proxy for Node.js, Ollama, and other backends. Covers proxy_pass, header forwarding, WebSocket support, upstream load balancing, and production timeout tuning.

11 min readRead