Websites & apps

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

52 guides · page 1 of 3

  • 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.

    IntermediateLinux server5 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.

    BeginnerLinux server5 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.

    BeginnerLinux server5 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.

    IntermediateLinux server5 min read
  • Enable Brotli compression in Nginx

    Add Brotli compression to Nginx with the packaged dynamic modules on Ubuntu 24.04 and Debian 12, keep gzip as a fallback, and confirm browsers receive br encoding.

    IntermediateLinux server5 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.

    BeginnerLinux server4 min read
  • Enable gzip compression in Nginx

    Turn on gzip in Nginx so HTML, CSS, JavaScript and JSON are sent compressed, choose sensible types and levels, and confirm it works with curl.

    BeginnerLinux server4 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.

    BeginnerLinux server4 min read
  • Express.js basics: build and host a small Node.js API

    Create a small Express.js API with routes, JSON and static files, make it production-ready behind a proxy, and host it on cPanel or a Linux VPS.

    BeginnercPanel hosting and Linux VPS2 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.

    BeginnerLinux server5 min read
  • Host a Node.js app in cPanel with Setup Node.js App

    Deploy an Express or other Node.js application on cPanel hosting with Setup Node.js App: choose the Node version, set the startup file, install npm packages and restart.

    IntermediatecPanel hosting2 min read
  • Host a Python (Flask or Django) app in cPanel with Setup Python App

    Run a Flask or Django application on cPanel hosting with Setup Python App: create a virtualenv, configure passenger_wsgi.py, install requirements and restart.

    IntermediatecPanel hosting2 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.

    BeginnerLinux server5 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.

    IntermediateLinux server4 min read
  • How to add virtual hosts and domains in OpenLiteSpeed

    Create a virtual host in OpenLiteSpeed WebAdmin, set its document root, add a port 80 listener, map your domain to it, enable rewrites and apply the change with a graceful restart.

    IntermediateLinux server4 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.

    IntermediateLinux server5 min read
  • How to find and read Apache access and error logs

    Find Apache's access and error logs on Ubuntu, Debian, AlmaLinux and Rocky Linux, set up per-site logs, and pull out errors and top visitors with a few shell commands.

    BeginnerLinux server5 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.

    BeginnerLinux server5 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.

    BeginnerLinux server4 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.

    IntermediateLinux server4 min read

Other topics

Still stuck?

Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.