title: Apache Virtual Host And Filezilla FTP User Access
body: <p>Is there a recommended way to configure apache to serve three separate user sites as well as allow them to upload/modify their own files without having access to each other files?</p>
  
  <p>I see reference to configure /var/www and other references to configure /home/user as well as using www-data:www-data for folders and others saying not to use www-data access.</p>
  
  <p>It's very confusing to know which is the correct method with best security practices in mind.</p>
  
  <p>Here's what I'm leaning towards:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  DocumentRoot /home/john/public_html
  ServerName www.example.com
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
  DocumentRoot /home/jane/public_html
  ServerName www.example.net
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
  DocumentRoot /home/bob/public_html
  ServerName www.example.org
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>The installation of wordpress (using WP as example. I'm sure other open source software is similar) requires access to modify configuration as well as automatic core/plugin updates and will need access to certain folders for uploads. </p>
  
  <p>Should the permissions be set at john/jane/bob folder or the public_html folder? </p>