Vagrant synced folder link to Apache /var/www/ in Ubuntu VM
<p>I'm not sure how to phrase the title; hopefully, it made sense. I am learning about Vagrant and just found out about synced folders. I am doing web development and want to edit/create my files and folders on my local machine instead of Ubuntu 14.04 (on Vagrant).</p>

<p>I store my files in my <code>/vagrant/</code> folder, which end up appearing on both machines. This is perfect. I want these folders/files to be automatically moved to <code>/var/www/</code> as soon as a file or folder is changed in the synced folder.</p>

<p>For example: </p>

<ul>
<li>Make folder on Windows 10 called <code>test</code> inside the synced folder. Put <code>index.html</code> inside <code>test</code>.</li>
<li>The folder and file are uploaded to the Ubuntu machine.</li>
<li>Inside of <code>/var/www/</code> in the Ubuntu machine, there should be a copy of the <code>test</code> folder along with all the files inside of it.</li>
<li>The <code>test</code> folder inside <code>/var/www/</code> updates if any changes are made in the synced folder <code>/vagrant/</code>.</li>
</ul>

<p>I was looking into the <code>ln</code> command but I keep getting an error saying "hard links not allowed". I was trying like this on Ubuntu:</p>

<pre><code>cd /vagrant
ln test /var/www/
</code></pre>

<p>Should I approach this differently? How can I accomplish what I want to do? Thanks in advance!</p>