Websites & apps

Web servers, WordPress, PHP, Node.js, SSL and app hosting.

  • Install PHP 8.x on AlmaLinux and Rocky Linux with Remi

    Enable EPEL and the Remi repository on AlmaLinux or Rocky Linux 8 and 9, choose a PHP module stream, install PHP-FPM with common extensions, and run extra PHP versions side by side.

    • Intermediate
    • Linux VPS
    • 4 min read
  • Use Apache as a reverse proxy with mod_proxy

    Put Apache in front of a Node.js, Python or Docker app with mod_proxy. Set ProxyPass and ProxyPassReverse, keep the original host, proxy WebSockets and serve the app over HTTPS.

    • Intermediate
    • Linux VPS
    • 4 min read
  • Enable gzip compression in Apache with mod_deflate

    Compress HTML, CSS, JavaScript and JSON in Apache with mod_deflate, add Brotli with mod_brotli for modern browsers and check the Content-Encoding header to prove it works.

    • Beginner
    • Linux VPS
    • 4 min read
  • Caddy redirects, headers, gzip/zstd compression and caching

    Practical Caddyfile recipes for www redirects, moved pages, gzip and zstd compression, security headers and browser cache rules, organised cleanly with handle blocks.

    • Intermediate
    • Linux VPS
    • 5 min read
  • How to install OpenLiteSpeed web server on Ubuntu

    Install OpenLiteSpeed on Ubuntu or Debian from the official LiteSpeed repository, add LSPHP, set the WebAdmin password, and open ports 8088 and 7080 without exposing the admin panel to everyone.

    • Beginner
    • Linux VPS
    • 4 min read
  • Set browser caching in Apache with mod_expires and headers

    Tell browsers how long to keep your files. Use mod_expires and Cache-Control headers in Apache to cache versioned assets for a year and keep HTML fresh.

    • Beginner
    • Linux VPS
    • 4 min read
  • Read and manage Nginx access and error logs

    Find Nginx's access and error logs, understand each line, give every site its own log, set error_log levels, pull out top IPs and URLs, and keep logs rotated.

    • Beginner
    • Linux VPS
    • 5 min read
  • Use Caddy as a reverse proxy for your apps

    Put Caddy in front of Node.js, Python or Docker apps with the reverse_proxy directive, give each app its own subdomain with automatic HTTPS, and add load balancing and health checks.

    • Beginner
    • Linux VPS
    • 5 min read
  • Nginx vs Apache vs OpenLiteSpeed for WordPress on a VPS

    A practical comparison of Nginx, Apache and OpenLiteSpeed for WordPress on a VPS, covering .htaccess support, caching, memory use and ease of setup, with a clear pick for each situation.

    • Beginner
    • Linux VPS
    • 6 min read
  • Tune Apache MPM settings to stop memory exhaustion

    Size Apache's MaxRequestWorkers to the RAM you really have, choose between prefork and event, set ServerLimit and KeepAlive sensibly and spot the MaxRequestWorkers warning in your logs.

    • Advanced
    • Linux VPS
    • 5 min read
  • Upgrade PHP to a newer version on your VPS

    Upgrade a site from PHP 8.1 to 8.3 or 8.4 safely. Install the new PHP-FPM and matching extensions, carry over php.ini changes, switch Nginx or Apache, test, and remove the old version.

    • Intermediate
    • Linux VPS
    • 5 min read
  • How to install WordPress on OpenLiteSpeed with LSCache

    Install WordPress on OpenLiteSpeed with the right LSPHP extensions, a MariaDB database and a dedicated virtual host, then turn on the LiteSpeed Cache plugin and confirm cache hits in the response headers.

    • Intermediate
    • Linux VPS
    • 4 min read
  • Show real visitor IPs in Nginx behind Cloudflare or a proxy

    Behind Cloudflare or a load balancer, Nginx sees the proxy's IP instead of your visitors'. Use the real_ip module to restore the real address for logs, rate limits and apps.

    • Intermediate
    • Linux VPS
    • 5 min read
  • Enable .htaccess and mod_rewrite in Apache

    If your .htaccess rules are ignored, Apache is usually missing mod_rewrite or AllowOverride. Enable both, restart safely and prove it works with a one-line test rule.

    • Beginner
    • Linux VPS
    • 4 min read
  • Host multiple websites on one VPS with Nginx server blocks

    Run several websites on one Linux VPS by giving each domain its own Nginx server block, its own web root and its own logs, then test and reload safely.

    • Beginner
    • Linux VPS
    • 5 min read
  • Rate limit requests in Nginx with limit_req

    Slow down brute-force logins, scrapers and API abuse with Nginx limit_req and limit_conn, using burst and nodelay so real visitors are not affected.

    • Intermediate
    • Linux VPS
    • 5 min read
  • How to migrate a website from Apache to Nginx

    Move a site from Apache to Nginx with low downtime - convert virtual hosts and .htaccess rewrites, set up PHP-FPM, reuse SSL certificates, test on a spare port, then switch.

    • Advanced
    • Linux VPS
    • 5 min read
  • Hide the Nginx version and harden the default config

    Make Nginx give away less and accept less. Hide the version number, drop requests for unknown hosts, block dotfiles, limit methods and body size, and tighten timeouts.

    • Beginner
    • Linux VPS
    • 5 min read
  • Load balance backends with Nginx upstream

    Spread traffic across several app instances or servers with an Nginx upstream block, choose round robin, least_conn or ip_hash, and add passive health checks and keepalive.

    • Advanced
    • Linux VPS
    • 5 min read
  • Set up Nginx as a reverse proxy for any backend app

    Put Nginx in front of a Node.js, Python, Go or Java app running on a local port, forward the right headers, tune timeouts and buffering, and add free HTTPS.

    • Intermediate
    • Linux VPS
    • 5 min read
  • Redirect www to non-www (or the reverse) in Nginx

    Pick one hostname for your site and send every other version to it with a clean 301 redirect in Nginx, keeping HTTPS and the full request path.

    • Beginner
    • Linux VPS
    • 5 min read
  • Set browser caching headers (expires and Cache-Control) in Nginx

    Tell browsers how long to keep images, CSS, JavaScript and fonts with expires and Cache-Control in Nginx, while making sure HTML stays fresh after every update.

    • Beginner
    • Linux VPS
    • 5 min read
  • Allow or block IP addresses in Nginx

    Use Nginx allow and deny rules to keep admin areas to your own IP, block abusive addresses and whole ranges, manage long lists in include files, and choose between 403 and 444.

    • Beginner
    • Linux VPS
    • 5 min read
  • How to add Let's Encrypt SSL to OpenLiteSpeed

    Issue a free Let's Encrypt certificate for an OpenLiteSpeed site with certbot's webroot method, add an SSL listener in WebAdmin, redirect HTTP to HTTPS and restart the server automatically after each renewal.

    • Intermediate
    • Linux VPS
    • 4 min read
  • Use a different PHP version per website in Nginx

    Run each Nginx site on its own PHP version by pointing its server block at a different PHP-FPM socket, give each site a separate pool, and confirm the version without leaving phpinfo exposed.

    • Intermediate
    • Linux VPS
    • 4 min read
  • How to install Caddy web server with automatic HTTPS

    Install Caddy from its official package repository on Ubuntu, Debian, AlmaLinux or Rocky Linux, write a simple Caddyfile, and let Caddy get and renew Let's Encrypt certificates for you.

    • Beginner
    • Linux VPS
    • 5 min read
  • How to change the PHP version in OpenLiteSpeed (LSPHP)

    Switch an OpenLiteSpeed server or a single site to a newer PHP version by installing the matching LSPHP packages, pointing the external app at the new binary, adding extensions and editing the right php.ini.

    • Intermediate
    • Linux VPS
    • 5 min read
  • Tune PHP-FPM pools (pm.max_children) for your RAM

    Size PHP-FPM to your server's memory. Choose between dynamic, ondemand and static, calculate pm.max_children from real per-process memory, set pm.max_requests, and act on the max_children warning.

    • Advanced
    • Linux VPS
    • 6 min read
  • Apache redirects with .htaccess: HTTPS, www and 301s

    Write Apache redirects that work the first time. Force HTTPS, pick www or non-www, move single pages and whole domains with Redirect and RewriteRule, and avoid redirect loops.

    • Beginner
    • Linux VPS
    • 5 min read
  • Add security headers in Nginx (HSTS, CSP, X-Frame-Options)

    Add the HTTP security headers browsers use to protect your visitors, including HSTS, X-Content-Type-Options, X-Frame-Options, Referrer-Policy and a starter Content Security Policy.

    • Intermediate
    • Linux VPS
    • 5 min read

Other topics