Fading Coder

One Final Commit for the Last Sprint

Nginx URL Rewriting for Unified Content Delivery with Dynamic Path Parameters

During the development of a headless CMS arhcitecture, I encountered an interesting Nginx configuration challenge. The project required serving the same static template file for multiple URL patterns while preserving URL parameters for client-side processing. The frontend application, built with Rea...

Mastering Nginx Configuration

Installing Nginx yum install -y gcc gcc-c++ glibc make autoconf openssl openssl-devel pcre-devel libxslt-devel gd-devel GeoIP GeoIP-devel GeoIP-data wget http://nginx.org/download/nginx-1.22.0.tar.gz useradd -M -s /sbin/nologin nginx mkdir -p /opt/nginx chown -R nginx:nginx /opt/nginx tar xf nginx-...

Configuring Nginx for Vue History Mode with Nested Directory Support

Deploying a Vue application using the HTML5 History API requires specific synchronization between the frontend router and the web server. When serving an application from a non-root path (sub-directory), additional configuration is necessary to ensure the router correctly maps paths to the applicati...

Nginx Virtual Hosts and Core Configuration Directives

Nginx Virtual Hosts and Core Configuration Directives
Nginx Virtual Hosts Overview Virtual host technology allows a single physical server to host multiple websites. Each virtual host can provide independent web services, and they are isolated from each other. Classification of Virtual Hosts Nginx supports three types of virtual host configurations: IP...

Comprehensive Guide to Zabbix Monitoring Infrastructure and Advanced Configuration

Zabbix Architecture and Core Components Zabbix is an enterprise-grade open-source monitoring solution designed for distributed systems and network monitoring. It provides a robust framework to track various network parameters, server health, and application integrity via a web-based management inter...

Configuring Nginx for Automatic Restart on Linux Systems

Ensuring Nginx Service Reliability in Production Environments In production environments, maintaining service availability is crucial. This guide demonstrates how to configure Nginx to automatically restart on system boot and after unexpected failures on Linux systems. Verifying Current Nginx Status...

Conditional Access and Geographic Filtering in Nginx

Link Authentication with secure_link This module validates requests by checking a cryptographic hash and expiration timestamp, preventing hot-linking and timed access to resources. It must be compiled into Nginx beforehand. Directives secure_link expression – Defines how to extract MD5 hash and expi...

Essential Nginx Hardening and Performance Tuning Techniques

Software Maintenance and Updates Running the latest stable version of Nginx is critical for security. Regular updates patch vulnerabilities and improve performance. While package managers like apt or yum simplify installation, compiling from source provides two distinct advantages: it allows the int...

Setting Up a Basic Live Streaming Server with Nginx and RTMP

To establish a live streaming server, we'll leverage Nginx along with the nginx-rtmp-module. This guide outlines the steps from obtaining the necessary components to configuring the server and streaming content. First, obtain the nginx-rtmp-module: cd /data/nginx yum install git git clone https://gi...

Setting Up and Configuring an Nginx Web Server

Nginx is a high-performance HTTP server and reverse proxy. This guide covers its enstallation, basic configuration, and management on Linux distributions. Installing Nginx Installation methods differ by operating system. Below are commands for Ubuntu/Debian and CentOS/RHEL-based systems. For Ubuntu/...