Guance Learn

Observability questions

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

Illustration of server operations and request logs
Explainer

Serve a single-page application with an Nginx HTML fallback

Use try_files for frontend routes while preserving real asset errors, API responses, and predictable caching.

Illustration of server operations and request logs
Explainer

Use wildcard and catch-all server names in Nginx

Match subdomains, capture tenant names, and configure a default listener without confusing Nginx wildcards with TLS certificates.

Illustration of server operations and request logs
Explainer

Stop Nginx from serving PHP source as a download

Configure the PHP-FPM handler, prevent unintended script execution, and distinguish source exposure from an application-generated download.

Illustration of server operations and request logs
Explainer

Troubleshoot “nginx.service failed because the control process exited”

Read the underlying Nginx and systemd errors, then check configuration, port ownership, file access, and service startup options.

Illustration of server operations and request logs
Explainer

Diagnose blank PHP pages behind Nginx

Inspect the HTTP response and PHP-FPM logs, verify script paths, and expose errors only in a controlled development environment.

Illustration of server operations and request logs
Explainer

Fix Nginx “stat() failed (13: Permission denied)”

Locate the inaccessible directory or security-policy denial, then grant the worker only the access required to serve the file.

Illustration of server operations and log analysis
Explainer

Proxy secure WebSocket connections through Nginx

Configure WSS termination, HTTP upgrade headers, idle timeouts, and connection tests without confusing a handshake with a working message stream.

Illustration of server operations and log analysis
Explainer

Diagnose Nginx “upstream timed out” errors

Separate connection, request-write, response-header, and response-body timeouts before adjusting the relevant proxy setting.

Illustration accompanying a Node.js development guide
Technical guide

Print without a newline in Node.js

Use stdout.write for inline output, update terminal progress safely, and account for redirected output and stream backpressure.

Illustration accompanying a Node.js development guide
Technical guide

Compare require and import in Node.js

Understand CommonJS and ES module loading, exports, file extensions, dynamic imports, and the limits of interoperability.

Illustration accompanying a Node.js development guide
Technical guide

Use async and await when iterating over an array

Choose sequential loops, concurrent promise collection, or bounded concurrency instead of expecting forEach to await an async callback.

Illustration accompanying a Node.js development guide
Technical guide

Convert a Node.js callback API to a promise

Use util.promisify for error-first callbacks, preserve method context, and write a custom wrapper when a callback returns several values.