Guides tagged “nginx”
Step-by-step MdmHost guides about nginx, sorted A-Z.
112 guides · page 6 of 6
Set up redirects in Plesk with .htaccess or nginx directives
Create 301 redirects, force HTTPS and www, and add custom Apache and nginx directives in Plesk, with ready-to-use examples and how to avoid redirect loops.
Setting up a private reverse proxy with Nginx and an internal API
Keep an internal API off the public internet by binding it to loopback or a private address, then let Nginx publish only the routes you choose. Includes firewall, TLS and SELinux notes.
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.
Speed up sites in Plesk with nginx caching, HTTP/2 and compression
Turn on nginx caching, serve static files directly, enable gzip or Brotli, HTTP/2 and OPcache in Plesk, and check which settings actually make a site faster.
TLS termination explained: where HTTPS ends and why it matters
What TLS termination, passthrough and re-encryption mean, how to terminate HTTPS on Nginx or HAProxy in front of backends, and how to pass the original scheme and client IP.
Tune PHP-FPM pools: pm.max_children and process managers
Calculate pm.max_children from your RAM, choose dynamic, static or ondemand, enable the status page and slow log, and fix 'server reached max_children' warnings.
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.
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.
Web server access log formats: combined, custom and JSON logs
Read every field of the combined log format, add response time and upstream timing, switch to JSON logs, and use one-line commands to find top IPs, slow URLs and errors.
Web server compression: Gzip vs Brotli vs Zstandard
How HTTP compression works, how Gzip, Brotli and Zstandard compare, which file types to compress, and how to enable and verify compression in Nginx, Apache and LiteSpeed.
Web server hardening checklist for Nginx and Apache
Lock down a public web server step by step: hide version details, deny hidden files, disable listings and unused methods, enforce modern TLS, limit request sizes and stop PHP running in upload folders.
Web server tuning for high traffic: a practical checklist
A layer-by-layer checklist for preparing a web server for traffic spikes: measure first, cache, tune workers and PHP, raise OS limits, tune the database and load-test before the big day.
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.
