Guides tagged “nginx”
Step-by-step MdmHost guides about nginx, sorted A-Z.
52 guides · page 2 of 3
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 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 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.
Implementing a Web Application Firewall on Nginx with ModSecurity
Install the ModSecurity module on Nginx, load the OWASP Core Rule Set, run in detection mode first, then block SQL injection and XSS with tuned rules.
Implementing advanced rate limiting in Nginx using limit_req
Use Nginx limit_req_zone and limit_req to cap requests per second, allow bursts, key limits by IP or API token and return clean 429 responses instead of letting abuse through.
Install a LEMP stack by hand (Nginx, MariaDB, PHP-FPM) on Ubuntu or AlmaLinux
Build a fast LEMP server: install Nginx, MariaDB and PHP-FPM on Ubuntu 24.04 or AlmaLinux 9, write a server block for PHP apps, secure it and add Let's Encrypt SSL.
Install Nginx and host your first website
Install Nginx, open ports 80 and 443, create a server block for your domain, and learn the test-then-reload routine that keeps a site online.
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.
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.
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 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 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.
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.
Password protect a site or folder with Nginx basic auth
Add a username and password prompt to a whole site, a staging copy or an admin folder with Nginx basic auth, and let trusted IPs through without a password.
Protect Nginx with Fail2ban: bad bots, scanners and auth
Turn on Fail2ban's built-in Nginx jails to ban password guessers, vulnerability scanners and clients that hit your rate limits, then test each filter against your real logs.
Proxy WebSocket connections through Nginx
Make WebSockets work behind Nginx by passing the Upgrade and Connection headers, using a map for connection_upgrade, raising read timeouts, and testing the socket.
Put a Node.js app behind Nginx, Apache or LiteSpeed (reverse proxy)
Serve a Node.js app on port 80/443 by proxying a domain to it with Nginx, Apache or OpenLiteSpeed, including headers, WebSocket support and testing.
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.
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.
Browse by topic
- 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.
