Fading Coder

One Final Commit for the Last Sprint

Building Nginx from Source for Static File Hosting on Ubuntu

To compile Nginx on Ubuntu for serving static content, first install the toolchain and required libraries: sudo apt update sudo apt install -y build-essential libpcre3-dev zlib1g-dev libssl-dev The build environment requires PCRE for regex support in location blocks, zlib for gzip compression module...

Configuring Domain Names for Node.js, Vue SPA, and SSR Applications

Domain Name Registration Register a domain name through a domain registrar such as Tencent Cloud. DNS Record Configuration Configure DNS records in your domain management panel to point the domain to your server's IP address. Nginx Server Block Setup Naivgate to the Nginx configuration directroy: cd...

Analyzing Nginx Logs with ELK Stack and Visualizing Data

This article demonstrates how to analyze Nginx logs using the ELK stack and visualize the resulting data. The environment assumes Elasticsearch is already installed and running, as described in a previous guide. Installing Nginx For testing purposes, a minimal installation suffices. [root@server ~]#...

Installing Strapi and Deploying with Nginx Locally

Strapi is an open-source headless content management system built with JavaScript and powered by Node.js. It provides an intuitive admin panel for managing content through APIs. Creating a New Project with Strapi To initiate a new project, execute the following command: npx create-strapi-app@latest...

Configuring HTTPS with Self-Signed SSL Certificates in Nginx

Install Nginx Ensure Nginx was compiled with the --with-http_ssl_module option. Verify the build configuraton: root@ecs-7398:/usr/local/nginx# ./sbin/nginx -V nginx version: nginx/1.20.2 built by gcc 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2) built with OpenSSL 1.1.1f 31 Mar 2020 TLS SNI support enabled...

Practical Nginx Advanced Configuration: Variables, Log Management, SSL, Compression and URL Rewrite

Nginx Server Status Page The status monitoring feature relies on the ngx_http_stub_status_module which is not compiled by default. You need to add the --with-http_stub_status_module parameter during Nginx compilation to enable it. Note that the status page reflects global server metrics, not per-vir...

Building a Custom Log Inspection Tool with Django and Nginx

Implementing a centralized log viewer allows for efficient diagnostics without the overhead of complex database-driven analysis platforms. This approach utilizes Nginx paired with uWSGI to serve a Django application, bypassing the configuration difficulties often encountered with Apache. The system...

CentOS 7 Single-Node Deployment: Nginx, MySQL, Nacos, Kafka, Redis, MinIO, kkFileView, and EMQX

Environment Preparation This guide covers deploying a complete service stack on CentOS 7. The /data/ directory serves as the mounted storage location, with installation packages stored in /data/install-page. 1. Setting Up Local YUM Repository Creating Mount Point mkdir -p /mnt/centos Mounting ISO Im...

Deploying Nginx Web Server with Docker

Start by pulling the official Nginx image from Docker Hub. The default tag retrieves the latest stable release optimized for general use: docker pull nginx For environments prioritizing minimal resource usage, use the Alpine Linux-based variant instead: docker pull nginx:alpine Confirm the image exi...

Introduction to Nginx: Installation and Configuration Methods

What is Nginx? Nginx is an open-source, high-performance HTTP server and reverse proxy server (middleware) developed by Igor Sysoev, commonly used for load balancing. Key features and advantages of Nginx include: High Performance: Capable of handling a large number of concurrent connections, excelli...