Articles tagged in: Nginx



nginx — How to Serve a Static HTML Page

Nginx is a powerful reverse proxy routing your domains from the Internet to your applications. This tutorial shows you how to serve a static HTML page with nginx. It walks you through the required paths, files, and configurations. {{outline}} Serve Static HTML Pages with nginx We created a snake browser …

Continue Reading

nginx — Is Running but Not Serving Sites

We recently installed the (to this time) newest nginx version 1.17 on a new machine. The created configurations in sites-available were symlinked to sites-enabled, but nginx wasn’t serving any of the domains. The crux here, nginx used the different directory conf.d to store a catch-all default configuration. …

Continue Reading

nginx — Remove an App/Domain from Sites-Enabled

Application hosting can become messy over time. You may shut down applications, move applications to a new domain, or you need a subdomain for a limited time. You may need to clean up your nginx configuration here and there to keep your lean setup. Nothing is worse than keeping every …

Continue Reading

Nginx — Redirect Only Root URL Path

We recently launched an internal website. This website doesn’t have a landing page and provides the feature on a URL path. We wanted to redirect all requests navigating the root path / to the feature page using nginx. Here’s how we solved it. {{outline}} Redirect the Root URL Path …

Continue Reading

Nginx Load Balancing — Advanced Configuration

Within the previous post on how to use nginx load balancing, we showed you the required nginx configuration to pass traffic to a group of available servers. This week, we dive into the advanced nginx configuration like load balancing methods, setting server weights, and health checks. {{outline}} Load Balancing Mechanisms …

Continue Reading

How to Use Nginx as a Load Balancer

Load balancing a great method to reduce latency, improve resource utilization and ultimately increase fault-tolerance. If you already use nginx as a reverse proxy, you can easily update your configuration to enable load balancing functionality for your application. This guide shows you how to configure nginx to forward requests to …

Continue Reading
Page 1 of 2

Explore the Library

Find interesting tutorials and solutions for your problems.