# Multi-Version PHP with Nginx on NixOS: Containerized and Not

DevFeed: [Multi-Version PHP with Nginx on NixOS: Containerized and Not](<https://devfeed.tech/articles/multi-version-php-with-nginx-on-nixos-containerized-and-not-32445.md>)

Original publisher: [Read original article](<https://nixcademy.com/posts/nixos-multi-php-version-container/>)

Author: Jacek Galowicz

Published: 2023-09-04T00:00:00Z

Content type: tutorial

Language: en

Sources: [Nixcademy Blog](<https://devfeed.tech/sources/nixcademy-blog.md>)

Topics: [PHP](<https://devfeed.tech/topics/php.md>), [nginx](<https://devfeed.tech/topics/nginx.md>), [Containers](<https://devfeed.tech/topics/containers.md>), [systemd](<https://devfeed.tech/topics/systemd.md>), [Unix](<https://devfeed.tech/topics/unix.md>), [configuration](<https://devfeed.tech/topics/configuration.md>)

Tags: [configure](<https://devfeed.tech/tags/configure.md>), [containerized](<https://devfeed.tech/tags/containerized.md>), [containers](<https://devfeed.tech/tags/containers.md>), [declarative](<https://devfeed.tech/tags/declarative.md>), [nginx](<https://devfeed.tech/tags/nginx.md>), [php](<https://devfeed.tech/tags/php.md>), [server](<https://devfeed.tech/tags/server.md>), [setup](<https://devfeed.tech/tags/setup.md>), [systemd](<https://devfeed.tech/tags/systemd.md>), [unix](<https://devfeed.tech/tags/unix.md>)

## AI overview

A tutorial on configuring Nginx on NixOS to route different paths to multiple PHP-FPM versions, with the setup optionally isolated in a declarative systemd-nspawn container.

## Source excerpt

Configure a web server with multiple PHP versions on NixOS using its declarative approach, and wrap it into NixOS containers for extra isolation.