title: Configure Apache Directories
body: <p>I have a problem in configuring my Apache. This litte indian is something headstrong.</p>
  
  <p>My Application is located under /var/www/myapp/</p>
  
  <p>There are 3 Elements:</p>
  
  <pre><code>./index.cgi - a python cgi script correctly working
  ./Application/ - a directory, which should be not public. contains include packages for index.cgi
  ./Public/ - a directory, public. contains javascripts, css files, images e.q.
  </code></pre>
  
  <p>My current VirtualHost configuration looks like:</p>
  
  <pre><code>DocumentRoot /var/www/myapp/
  Alias /Public/* "/var/www/myapp/Public/*"
  &lt;Location "/myapp/*"&gt;
    Options FollowSymLinks
    Order allow,deny
    Allow from all
  &lt;/Location&gt;
  ScriptAlias "/index.cgi" "/var/www/myapp/index.cgi"
  </code></pre>
  
  <p>So <code>/Public</code> is public as wished, index.cgi runs. But: /Application is accessible. How do I lock this directory? </p>
  
  <p>Second thing is: index.cgi should run, when I call www.mydomain.com/ or www.mydomain.com/index.cgi. Nothing else but URI parameters. How do I do that?</p>
  
  <p>Thanks in advance,
  BigM</p>