title: How to allow access to only a single file?
body: <p>I have a apache machine which is serving a <code>.js</code> file. That file should be the only file that need to seen. </p>
  
  <p>I have configured to do so in my apache like this :</p>
  
  <pre><code>&lt;Location /var/www/test/test.js&gt;
      Order allow,deny
      Allow from all
  &lt;/Location&gt;
  </code></pre>
  
  <p>The site address is <code>test.in</code> which points to <code>test.js</code> file in <code>/var/www/test</code> directory. That is working fine. But I wish when the user tries to hit <code>test.in/someurl</code> (which is not available) or some other url than <code>test.in</code> need to give an message with <code>401</code> error. </p>
  
  <p>How do I do that? Thanks in advance.</p>