title: Apache "Alias" excluding some domains
body: <p>I have wampp server installed on windows. On this server i have multiple subdomains running alongwith some primary domains using virtual hosts. A requirement was to implement robots.txt for all subdomains automatically. For example:</p>
  
  <pre><code>site1.example.com
  
  site2.example.com
  
  site3.example.com
  
  site1.example.net
  
  site2.example.net
  </code></pre>
  
  <p>So for this in http.conf i have written:</p>
  
  <pre><code>Alias /robots.txt D:/wampp/static-files/override-robots.txt
  </code></pre>
  
  <p>The above fullfills the requirement for all subdomains on example.com &amp; example.net and every new subdomain created will have this robots.txt by default and one don't have to put separate robots.txt for each, but the problem is that some primary domains are also on this server and there robots.txt also get run from the above. For example:</p>
  
  <pre><code>www.primarydomain1.com
  
  www.primardomain2.com
  </code></pre>
  
  <p>Now, what i want is that all subdomains of example.com &amp; example.net will have robots.txt automatically run from above excluding all primary domains. May be Apache Alias is not the best way of doing this, so any help or hint regarding it will be very helpful.</p>
  
  <p>Thanks</p>