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.
- 01Recommended starting point
WordPress on Nginx
WordPress-specific Nginx notes for routing, permalinks, multisite, caching, and common deployment patterns.
developer.wordpress.org - 02
WordPress on Apache
Configure Apache modules, overrides, permalinks, virtual hosts, and WordPress-aware request handling.
developer.wordpress.org - 03
NGINX Documentation
The upstream reference for request processing, reverse proxying, FastCGI, TLS, caching, and logging.
nginx.org - 04
Apache HTTP Server Documentation
The upstream reference for virtual hosts, modules, access rules, rewrites, TLS, and diagnostics.
httpd.apache.org - 05
PHP-FPM Installation and Configuration
The PHP manual covers process pools, workers, logging, environment handling, and operational FPM configuration.
php.net - 06
Mozilla TLS Configuration
Generate and review modern TLS server configurations for common web servers.
ssl-config.mozilla.org - 07
NGINX Content Caching
Configure proxy and FastCGI caching with explicit validity, bypass, stale, and purge behavior.
docs.nginx.com