
Serving llms.txt from a Dockerized WordPress + Nginx Setup
If you're running WordPress in Docker with Nginx and PHP-FPM in separate containers , you've probably hit this kind of problem before: a plugin generates a file inside the WordPress container, but Nginx can't see it because the filesystems are isolated. That's exactly what happened when I tried to enable llms.txt support via AIOSEO on a typical Dockerized WordPress setup. The Problem llms.txt is a new standard (similar to robots.txt ) that helps LLMs understand and index your site's content. AIOSEO generates it automatically — and so does Yoast SEO. Both plugins follow the same pattern: they write a physical file to the WordPress root directory. In a standard single-server setup, this works fine. In Docker, it doesn't. Here's the catch: A typical Dockerized WordPress setup looks like this: Nginx container — handles all incoming HTTP requests WordPress (PHP-FPM) container — runs the application The /var/www/html directory is not a shared volume between them. This is intentional — keepin
Continue reading on Dev.to
Opens in a new tab




