title: upload files to Apache alias directory and subdirectories
body: <p>I have two virtual hosts on my server. One "web" and one "mobile". I can view files from the "web" under the directory "users" normally but I cannot upload or create directories under it?!!</p>
  
  <p>for example: </p>
  
  <pre><code>&lt;img src='http://m.domain.com/users/imgs/sample.png' /&gt; this is viewable 
  
  //this is not possible
  &lt;?php 
    mkdir("users/newDir"); //fails
  
    $img = file_get_contents("http://images.devshed.com/fds/belts/ds_forums.gif");
    $file = "users/newDir/sample.gif";
    file_put_contents($file, $img); //fails
  
    $img = file_get_contents("http://images.devshed.com/fds/belts/ds_forums.gif");
    $file = "users/sample.gif";
    file_put_contents($file, $img); //fails
  
  ?&gt; 
  </code></pre>
  
  <p>I have the following under my mobile virtual to point to the files on my "web":</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  ServerName domain.com
  ServerAlias m.domain.com
  
   DocumentRoot "C:/Apache/mobileroot"
   &lt;Directory "C:/Apache/mobileroot"&gt;
       Options FollowSymLinks
       AllowOverride None
       Order allow,deny
       Allow from all
   &lt;/Directory&gt;
  
   Alias /users/ "C:/Apache/webroot/users/"
   &lt;Directory "C:/Apache/webroot/users/"&gt;
      Options Indexes MultiViews
      AllowOverride None
      Order allow,deny
      Allow from all
   &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>