I want to separate PHP (PHP-FPM) and Nginx into different jails. One jail with Nginx, and one with PHP-FPM / PHP / Wordpress.
Nginx is good at serving static assets, so I would like to serve those directly with Nginx. How can I mount a folder from one jail into another jail (read-only)?
I also have a Nodejs app in another jail, so I would also like to serve the static assets of it directly with Nginx.
Side question: When you host multiple PHP sites on the same server. Do you have to install PHP / PHP-FPM in each jail if you want each web-app in each own jail?
- Version: FreeBSD 10.2
- Filesystem: root on ZFS
I have found this blog on using mount_nullfs for it. But can you use it between jails instead of between the host and a jail?