Guides tagged “nginx”
Step-by-step MdmHost guides about nginx, sorted A-Z.
112 guides · page 2 of 6
Docker Compose for WordPress: Nginx, PHP-FPM and MariaDB
Build a WordPress stack with Docker Compose using separate Nginx, PHP-FPM and MariaDB containers, a persistent wp-content volume and a free Let's Encrypt certificate.
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 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 HTTP/3 and QUIC in Nginx (with HTTP/2 fallback)
Turn on HTTP/3 in Nginx 1.25+: check your build, add QUIC listeners on UDP 443, advertise with Alt-Svc, open the firewall and confirm browsers really switch to h3.
Enable NGINX with reverse proxy on cPanel
Install cPanel's ea-nginx as a caching reverse proxy in front of Apache, control caching per account, clear the cache and fix 502 Bad Gateway errors.
Event-driven vs process-based web servers: how they handle connections
Why Nginx, LiteSpeed and Caddy handle thousands of connections with little memory while classic Apache needs a process or thread each: the C10k problem, event loops, epoll and what it means for you.
Fix "413 Request Entity Too Large" on uploads
Fix 413 errors when uploading files: raise client_max_body_size in Nginx, LimitRequestBody in Apache, PHP upload limits, and proxy or CDN limits in front of the server.
Fix "Too many open files" errors on Linux
Understand file descriptor limits, check what a process is allowed and using, and raise limits correctly for systemd services, Nginx, MySQL, Node.js and user sessions.
Fix 403 Forbidden in Nginx
Nginx returns 403 Forbidden when it will not serve a file or folder. Work through the usual causes, from a missing index file to permissions, deny rules and SELinux.
Fix 500 Internal Server Error for PHP sites on a VPS
Track down a PHP 500 Internal Server Error on your own Nginx or Apache server: read the right logs, then fix fatal errors, permissions, .htaccess, FPM and SELinux causes.
Fix 502 Bad Gateway errors with Nginx and PHP-FPM
Diagnose 502 Bad Gateway on PHP sites: PHP-FPM down or crashing, wrong socket path or permissions, exhausted workers, oversized headers and upstream timeouts.
Fix 502 Bad Gateway in Nginx
A 502 Bad Gateway means Nginx could not get a valid answer from PHP-FPM or your app. Read the error log, then check the backend service, socket path, permissions and ports.
Fix 504 Gateway Timeout errors on Nginx, PHP and app servers
Find why a request times out with 504 Gateway Timeout: slow PHP or database queries, mismatched proxy and FPM timeouts, CDN limits, and when to raise timeouts versus fix the code.
Fix 504 Gateway Timeout in Nginx
A 504 Gateway Timeout means PHP or your app took longer to answer than Nginx was willing to wait. Find the slow request, raise the right timeouts consistently, and fix the root cause.
Fix CORS errors: "No 'Access-Control-Allow-Origin' header"
Understand browser CORS errors when a frontend calls an API on another domain, and fix them correctly in the app, Nginx or Apache, including preflight requests and credentials.
Fix ERR_TOO_MANY_REDIRECTS: diagnose a redirect loop
Trace an ERR_TOO_MANY_REDIRECTS loop across Nginx, Apache, WordPress and Cloudflare, and find the single rule that keeps sending traffic back to itself.
Fix Nginx 404 errors with try_files for pretty URLs
Pretty URLs return 404 on Nginx when nothing routes them to your app. Add the right try_files line for WordPress, Laravel or a single-page app, and avoid root and alias mistakes.
Fix Nginx 413 Request Entity Too Large
Nginx returns 413 Request Entity Too Large when an upload is bigger than client_max_body_size. Raise the limit for one site or the whole server, match PHP's limits, and test.
Fix Nginx failed to start: address already in use
Nginx will not start when another program already holds port 80 or 443. Find what is using the port with ss, stop or move it, fix duplicate listen lines, then start Nginx.
Forward proxy vs reverse proxy vs load balancer
The difference between a forward proxy, a reverse proxy and a load balancer, what each is used for, real examples like Squid, Nginx, HAProxy and Cloudflare, and how they combine.
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.
