GrepBoard/Manuals
605 manuals ·

Web server 9

  1. certbot "Timeout during connect" — Check Port 80

    When certbot fails with "Timeout during connect (likely firewall problem)", find where port 80 is blocked by testing from inside the server, then from outside.

    Ubuntu 24.04.5 · Nginx 1.24.0 · Let's Encrypt official docs · 2026-10
  2. Test HTTPS on Nginx with a Self-Signed Certificate

    Create a self-signed certificate with openssl, attach it to Nginx, and see what curl reports with the self-signed certificate error, -k and --cacert.

    Ubuntu 24.04 · nginx 1.24.0 · OpenSSL 3.0.13 · curl 8.5.0
  3. nginx worker_connections are not enough: tuning and keepalive

    Fix nginx "worker_connections are not enough": raise worker_connections, fit worker_rlimit_nofile to the hard limit, check upstream keepalive (1.29.7+).

    nginx 1.30.6 (Docker nginx:stable) · 2026-10
  4. Nginx 403 Forbidden — Tell Permission Errors from Index Errors

    Two error.log messages explain a 403. Find the blocking directory with namei -l for Permission denied; add an index or autoindex when the index is forbidden.

    Ubuntu 24.04.5 · Nginx 1.24.0 (worker user www-data)
  5. Squid proxy: allow only your subnet, check 403 TCP_DENIED

    Limit Squid to your subnet with acl src and http_access, keep the default protection rules, and check curl -x (200/403) and TCP_DENIED. Wrong order blocks all.

    Ubuntu 24.04 · Squid 6.14 (Docker) · curl · 2026-10
  6. PHP-FPM pm.max_children Tuning: server reached pm.max_children

    Fix server reached pm.max_children: read listen queue on the FPM status page, measure one worker's memory, and size max_children to the RAM PHP can use.

    PHP 8.3.36 (php:8.3-fpm Docker) · Ubuntu 24.04 php8.3-fpm 8.3.6 (Docker) · 2026-10
  7. How to Set Up Nginx Basic Auth with htpasswd on Ubuntu 24.04

    Set up Nginx auth_basic with htpasswd on Ubuntu 24.04, pick a hash (the Nginx docs say not to use {SHA}), and tell 401, 403 and 500 apart by the error log.

    Ubuntu 24.04 · nginx 1.24.0 (Docker) · 2026-10
  8. Put Nginx in front of an app as a reverse proxy

    Send one host name to an app on a local port, pass the client address along, and tell a proxy 502 apart from an app error.

    Ubuntu 24.04.5 LTS · nginx 1.24.0 · Python 3 http.server (test app)
  9. Install Nginx and set the server name

    Install Nginx from the Ubuntu repository, set the default site to your host name, then test the config and reload without dropping connections.

    Ubuntu 24.04.5 LTS · nginx 1.24.0