Curated resource guide

Nginx and Apache for WordPress

Configure Nginx or Apache for correct WordPress routing, secure delivery, and predictable performance. These resources cover virtual hosts, server blocks, PHP-FPM, permalinks, redirects, TLS, headers, static and FastCGI caching, proxies, multisite, access rules, logging, and common 403, 404, 502, and 504 failures.

Scope

What this guide covers

  • WordPress rewrite rules and permalinks
  • Nginx server blocks and Apache virtual hosts
  • FastCGI/PHP-FPM
  • .htaccess
  • redirects
  • security headers
  • TLS
  • compression
  • static asset caching
  • FastCGI cache
  • upload limits
  • client body limits
  • timeouts
  • proxy settings
  • reverse proxies
  • real IP handling
  • multisite configurations
  • subdirectory installations
  • protected directories
  • deny rules
  • XML-RPC decisions
  • logs
  • troubleshooting 404/403/502/504 errors
  • and performance/security configuration

Selected references

Curated resources

Links open the original publisher so you can use the complete, current material in context.

  1. 02
    5

    WordPress on Apache

    Configure Apache modules, overrides, permalinks, virtual hosts, and WordPress-aware request handling.

    developer.wordpress.org
  2. 03
    5

    NGINX Documentation

    The upstream reference for request processing, reverse proxying, FastCGI, TLS, caching, and logging.

    nginx.org
  3. 04
    5

    Apache HTTP Server Documentation

    The upstream reference for virtual hosts, modules, access rules, rewrites, TLS, and diagnostics.

    httpd.apache.org
  4. 05
    5

    PHP-FPM Installation and Configuration

    The PHP manual covers process pools, workers, logging, environment handling, and operational FPM configuration.

    php.net
  5. 06
    5

    Mozilla TLS Configuration

    Generate and review modern TLS server configurations for common web servers.

    ssl-config.mozilla.org
  6. 07
    5

    NGINX Content Caching

    Configure proxy and FastCGI caching with explicit validity, bypass, stale, and purge behavior.

    docs.nginx.com