Guides tagged “nginx”
Step-by-step MdmHost guides about nginx, sorted A-Z.
112 guides · page 4 of 6
Install PrestaShop on a Linux VPS with Nginx and PHP-FPM
Set up PrestaShop 8 on an Ubuntu or AlmaLinux VPS with Nginx, PHP-FPM and MariaDB, including the right PHP extensions, an Nginx config, SSL and post-install security.
Install WordPress on a LEMP stack (Nginx, MariaDB, PHP)
Build a LEMP stack on Ubuntu or Debian, create the database, configure wp-config.php and Nginx for PHP-FPM, then finish the WordPress installer over HTTPS.
Install WordPress on a Linux VPS with Nginx (LEMP)
Install WordPress on your own VPS: PHP-FPM and extensions, a MariaDB database, WP-CLI download, an Nginx server block with security rules, SSL, real cron and caching.
Issue SSL certificates with acme.sh (a lightweight Certbot alternative)
Install acme.sh, issue certificates with webroot, standalone or DNS API validation, choose a CA, install certificates into Nginx, Apache or HAProxy with reload commands, and renew automatically.
Keep-alive and timeouts: tune Nginx, Apache and PHP-FPM together
What HTTP keep-alive does, every timeout between the browser and PHP, how to align them so you avoid 502/504 errors and slowloris-style attacks, and safe starting values.
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.
Manage multiple PHP versions on Ubuntu with PHP-FPM
Install several PHP-FPM versions on one Ubuntu server, set the CLI default, and point each Nginx site at the PHP version it needs.
Monitor web server load with Apache mod_status, Nginx stub_status and PHP-FPM status
Enable the built-in status pages of Apache, Nginx and PHP-FPM, restrict them to localhost, read every metric they show, and use them to spot worker exhaustion during traffic spikes.
Nginx 301 redirects and rewrite rules explained
Learn when to use return and when to use rewrite in Nginx, then redirect single pages, whole folders and old domains, and convert common.htaccess rules.
Nginx and PHP-FPM over FastCGI: fastcgi_pass, params and buffers explained
How Nginx talks to PHP-FPM using FastCGI: what fastcgi_pass, SCRIPT_FILENAME and fastcgi_split_path_info do, Unix socket vs TCP, buffers and timeouts, and the security rule that stops PHP running uploads.
Nginx load balancing: upstream blocks, methods and failover
Spread traffic across several backend servers with Nginx: upstream blocks, round robin, least_conn, ip_hash and hash, weights, passive health checks, backup servers and sticky sessions.
Nginx location blocks: matching order, modifiers and try_files
How Nginx picks a location block for each request: exact, prefix, ^~, regex and named locations, the real matching order, try_files and the common mistakes that cause 404s.
Nginx performance tuning: workers, compression and FastCGI cache
Practical Nginx performance tuning for a VPS: worker settings, keep-alive, gzip/Brotli compression, static file caching headers, HTTP/2, and a FastCGI page cache for PHP sites.
Nginx Proxy Manager in Docker: HTTPS for many self-hosted apps
Run Nginx Proxy Manager in Docker, add proxy hosts for each app and issue free Let's Encrypt certificates from a single web UI.
Nginx proxy_cache and microcaching for dynamic sites
Cache responses from a backend app with Nginx proxy_cache: cache zones and keys, bypassing logged-in users, microcaching for one second, serving stale content during outages and purging.
Nginx rate limiting with limit_req and limit_conn
Protect login pages, APIs and the whole site from floods with Nginx rate limiting: zones, burst and nodelay, connection limits, whitelisting and testing with real requests.
Nginx redirects: return vs rewrite, with ready-to-use examples
Write Nginx redirects the right way: when to use return and when rewrite, HTTP to HTTPS, www and non-www, moved pages and folders, bulk redirects with map, and keeping query strings.
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.
nginx.conf explained: contexts, includes and directive inheritance
Understand how Nginx configuration is organised: main, events, http, server and location contexts, include files, sites-enabled vs conf.d, how directives inherit, and how to read the full merged config.
Node.js WebSockets behind Nginx, Apache, LiteSpeed or cPanel
Make Socket.IO or ws WebSockets work behind a reverse proxy: upgrade headers for Nginx, Apache and LiteSpeed, timeouts, wss:// over SSL and cPanel limits.
Browse by topic
- Getting startedYour first hour with a new server: access, logins and basics.83 guides
- cPanelFiles, databases, email, domains and every cPanel tool, step by step.67 guides
- WHM & resellingWHM, packages, reseller accounts, WHMReseller and running a hosting brand.53 guides
- WordPressInstall, secure, speed up, migrate and fix WordPress sites.49 guides
- Email & webmailMailboxes, webmail, forwarders, spam filters and email delivery.67 guides
- DomainsRegistering, transferring and managing domains and nameservers.27 guides
- SSL certificatesFree AutoSSL, Let's Encrypt, paid certificates and HTTPS.41 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.35 guides
- Imunify360Malware scanning, firewall and proactive defence with Imunify360.24 guides
- SoftaculousInstall, update, clone and back up apps with Softaculous.24 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.28 guides
- VirtualizorManage your VPS with Virtualizor: power, OS reinstall, VNC, IPs and backups.44 guides
- PleskWebsites, email, databases and settings in the Plesk panel.53 guides
- DirectAdminUsers, domains, email and reseller tools in DirectAdmin.41 guides
- WHMCSBilling, automation, products and client management with WHMCS.52 guides
- Control panelscPanel & WHM, Plesk, DirectAdmin and other panels on your VPS.107 guides
- SecurityKeys, passwords, firewalls and keeping a server patched.138 guides
- Networking & DNSIP addresses, reverse DNS, ports and traffic.72 guides
- Websites & appsWeb servers, WordPress, PHP, Node.js, SSL and app hosting.83 guides
- DatabasesMySQL, MariaDB, PostgreSQL, Redis and MongoDB on a VPS.80 guides
- Billing & accountInvoices, renewals, the client area and your account.9 guides
- TroubleshootingWhen something is not working: checks and fixes.127 guides
- Linux VPSSSH, packages, services and everyday Linux administration.265 guides
- Windows VPS & RDPRemote Desktop, Windows Server settings and Admin RDP tips.73 guides
- Docker & DevOpsContainers, Git deploys, automation, monitoring and backups.82 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.
