title: FreeBSD jails and Sockets
body: <p>I'm quite new to freeBSD switching from Linux.</p>
  
  <p>I read about jail, the solution sound great for Server Systems.
  So my idea for my webserver was to create 3 jails.
  One jail for mysql, one for nginx and one  for php-fpm.
  Now the jails have to communicate with each other. How do I do that?</p>
  
  <p>Over IP? It would be a big overhead but secure. 
  Here is an example:</p>
  
  <ul>
  <li>CLIENT 
  <ul>
  <li>-> TCP/IP -> NGINX</li>
  <li>-> TCP/IP -> PHP-FPM </li>
  <li>-> TCP/IP -> MYSQL</li>
  <li>-> TCP/IP -> PHP-FPM </li>
  <li>-> TCP/IP -> NGINX </li>
  <li>-> TCP/IP -> CLIENT</li>
  </ul></li>
  </ul>
  
  <p>With Sockets: That would be a security los..</p>
  
  <ul>
  <li>create a directories on the host system</li>
  <li>create a directories in the jails</li>
  <li>merge the directories</li>
  </ul>
  
  <p>Which solution do you use?Or do you have better solutions?</p>