Guance Learn

Observability questions

Focused answers for definitions, architecture choices, troubleshooting, pricing, and evaluation.

Illustration of server operations and request logs
Explainer

Fix Nginx “directory index is forbidden” errors

Choose a directory index or an intentional directory listing, then check the actual path, permissions, and matched location.

Illustration of server operations and request logs
Explainer

Troubleshoot Nginx 403 responses across a site

Use the error log to separate filesystem permissions, SELinux, path mapping, and access rules before changing ownership.

Illustration of server operations and request logs
Explainer

Configure Nginx to proxy requests to an HTTPS upstream

Encrypt the upstream connection, verify its certificate, and configure SNI and the HTTP Host header deliberately.

Illustration of server operations and request logs
Explainer

Fix “could not build server_names_hash” in Nginx

Choose the right hash setting for long names or many virtual hosts, then test the smallest effective adjustment.

Illustration of server operations and request logs
Explainer

Fix Nginx “conflicting server name … ignored” warnings

Find duplicate hostname mappings on the same listening address and port, and verify which virtual host receives each request.

Illustration of server operations and request logs
Explainer

Fix Nginx connection failures to a PHP-FPM socket

Use the socket error code to distinguish permissions, a missing path, and a stopped FPM pool before changing listener settings.

Illustration of server operations and request logs
Explainer

Redirect HTTP to HTTPS while preserving subdomains in Nginx

Keep the requested host, path, and query string while handling named virtual hosts, certificates, and redirect methods correctly.

Illustration of server operations and request logs
Explainer

Understand Nginx location matching order

Trace exact, prefix, and regex location selection, including the limits of the usual flat-configuration rule.

Illustration of server operations and request logs
Explainer

Why Nginx has no sites-available directory

Find the include layout used by your Nginx installation and add site configuration without relying on a distribution-specific convention.

Illustration of server operations and request logs
Explainer

Redirect www to non-www, or non-www to www, with Nginx

Choose a canonical hostname, preserve paths and queries, and cover HTTP and HTTPS entry points without creating a redirect loop.

Illustration of server operations and request logs
Explainer

Get the correct client IP behind trusted proxies in Nginx

Configure real-IP trust boundaries, understand recursive X-Forwarded-For parsing, and test spoofed headers from untrusted clients.

Illustration of server operations and request logs
Explainer

Troubleshoot 504 Gateway Timeout responses from an Nginx proxy

Identify which upstream operation timed out, align request deadlines, and use backend evidence before increasing proxy timeouts.