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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Other topics
- Getting startedYour first hour with a new server: access, logins and basics.69 guides
- cPanelFiles, databases, email, domains and every cPanel tool, step by step.37 guides
- WHM & resellingWHM, packages, reseller accounts, WHMReseller and running a hosting brand.49 guides
- WordPressInstall, secure, speed up, migrate and fix WordPress sites.40 guides
- Email & webmailMailboxes, webmail, forwarders, spam filters and email delivery.37 guides
- DomainsRegistering, transferring and managing domains and nameservers.20 guides
- SSL certificatesFree AutoSSL, Let's Encrypt, paid certificates and HTTPS.19 guides
- CloudLinuxCloudLinux setup and use: LVE limits, CloudLinux Manager, CageFS and PHP/Node.js selectors.31 guides
- LiteSpeedLiteSpeed Web Server, LSCache and the LiteSpeed Cache plugin: install, settings and tuning.30 guides
- Imunify360Malware scanning, firewall and proactive defence with Imunify360.23 guides
- SoftaculousInstall, update, clone and back up apps with Softaculous.23 guides
- WP SquaredcPanel's WordPress platform: sites, plugins, staging and backups.9 guides
- SitePadBuild and publish websites with the SitePad builder.9 guides
- SitejetDesign, edit and publish sites with the Sitejet builder.9 guides
- WHMResellerAlpha and master resellers with WHMReseller: install, setup and use.12 guides
- VirtFusionInstall, set up and manage VirtFusion: hypervisors, packages, servers and WHMCS integration.7 guides
- VirtualizorManage your VPS with Virtualizor: power, OS reinstall, VNC, IPs and backups.30 guides
- PleskWebsites, email, databases and settings in the Plesk panel.52 guides
- DirectAdminUsers, domains, email and reseller tools in DirectAdmin.40 guides
- WHMCSBilling, automation, products and client management with WHMCS.51 guides
- Control panelscPanel & WHM, Plesk, DirectAdmin and other panels on your VPS.106 guides
- SecurityKeys, passwords, firewalls and keeping a server patched.115 guides
- Networking & DNSIP addresses, reverse DNS, ports and traffic.34 guides
- Websites & appsWeb servers, WordPress, PHP, Node.js, SSL and app hosting.52 guides
- DatabasesMySQL, MariaDB, PostgreSQL, Redis and MongoDB on a VPS.64 guides
- Billing & accountInvoices, renewals, the client area and your account.9 guides
- TroubleshootingWhen something is not working: checks and fixes.68 guides
- Linux VPSSSH, packages, services and everyday Linux administration.70 guides
- Windows VPS & RDPRemote Desktop, Windows Server settings and Admin RDP tips.58 guides
- Docker & DevOpsContainers, Git deploys, automation, monitoring and backups.58 guides
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.
