title: How to allow a single url but restrict the others using htaccess
body: <p>I am trying to allow  a single location (a <strong>file which does not exist</strong>) to be accessed on my Apache 2.2.3 (Centos) server to be able to implement the paypal ipn listener.
  The other files should stay password protected. </p>
  
  <p><strong>How can I allow a single location to be accessed without login?</strong> </p>
  
  <p>The code bellow shows what I tried so far.</p>
  
  <p>The location directive selects the correct location (I tested this by writing deny from all to it).</p>
  
  <p>The <strong>issue I have</strong> now is that the <strong>server is still asking for a password for that location</strong>. </p>
  
  <p>I tried already to put the location directive into the directory one but this leads to an syntax error (even if it would be allowed for file directives) but I <strong>can not use a file directive</strong> instead a location one, because the file does not physically exist.</p>
  
  <pre><code>&lt;Directory /var/www/vhosts/somedomain.net/subdomains/p103.myproject/httpdocs/public&gt;
  Order Deny,Allow
   Options -Includes -ExecCGI
   SetEnv APPLICATION_ENV "development"
   AuthName "myproject"
   AuthType Basic
   AuthUserFile /var/www/vhosts/somedomain.net/subdomains/p103.myproject/.htpasswd
   AuthGroupFile /var/www/vhosts/somedomain.net/subdomains/p103.myproject/.htgroups
   Require group myproject
  &lt;/Directory&gt;
  DocumentRoot /var/www/vhosts/somedomain.net/subdomains/p103.myproject/httpdocs/public
  &lt;Location "/ipn/sdsad8329ejslkdjasl"&gt;
   Order Deny,Allow
   Allow from all
   Satisfy Any
  &lt;/Location&gt;
  </code></pre>
  
  <p>Here a link to the documentation: <a href="http://httpd.apache.org/docs/2.2/" rel="nofollow">http://httpd.apache.org/docs/2.2/</a></p>