title: How can I redirect requests to specific files above the site root?
body: <p>I'm starting up a new web-site, and I'm having difficulties enforcing my desired file/folder organization:</p>
  
  <p>For argument's sake, let's say that my website will be hosted at:
  <a href="http://mywebsite.com/" rel="nofollow noreferrer">http://mywebsite.com/</a></p>
  
  <p>I'd like (have set up) Apache's Virtual Host to map <a href="http://mywebsite.com/" rel="nofollow noreferrer">http://mywebsite.com/</a> to the /fileserver/mywebsite_com/www folder.</p>
  
  <p>The problem arises when I've decided that I'd like to put a few files (favicon.ico and robots.txt) into a folder that is ABOVE the /www that Apache is mounting the <a href="http://mywebsite.com/" rel="nofollow noreferrer">http://mywebsite.com/</a> into</p>
  
  <pre><code>robots.txt+favicon.ico go into =&gt; /fileserver/files/mywebsite_com/stuff
  </code></pre>
  
  <p>So, when people go to <a href="http://mywebsite.com/robots.txt" rel="nofollow noreferrer">http://mywebsite.com/robots.txt</a>, Apache would be serving them the file from /fileserver/mywebsite_com/stuff/robots.txt</p>
  
  <p>I've tried to setup a redirection via mod_rewrite, but alas:</p>
  
  <pre><code>RewriteRule ^(robots\.txt|favicon\.ico)$ ../stuff/$1 [L]
  </code></pre>
  
  <p>did me no good, because basically I was telling apache to serve something that is above it's mounted root.</p>
  
  <p>Is it somehow possible to achieve the desired functionality by setting up Apache's (2.2.9) Virtual Hosts differently, or defining a RewriteMap of some kind that would rewrite the URLs in question not into other URLs, but into system file paths instead?
  If not, what would be the preffered course of action for the desired organization (if any)?</p>
  
  <p>I know that I can access the before mentioned files via PHP and then stream them - say with readfile(..), but I'd like to have Apache do as much work as necessary - it's bound to be faster than doing I/O through PHP.</p>
  
  <p>Thanks a lot, this has deprived me of hours of constructive work already. Not to mention poor Apache getting restarted every few minutes. Think of the poor Apache :)</p>