title: How can I configure apache to use php to create a javascript file
body: <p>I want clients to be able to include one of my javascript files on their site like this:</p>
  
  <pre><code>&lt;script src="http://www.example.com/blah.js" &gt;&lt;/script&gt;
  </code></pre>
  
  <p>But I want to actually use php to dynamically create the javascript file/response (I don't want blah.js to actually exist on my server).  I am running ubuntu 14.04 and apache 2.4.7.  blah.js is the only file I want my server to act on like this.  In my php I will check the IP address and create the javascript file/response based on the client site.  I want any other javascript file request to act as normal.  </p>
  
  <p>Can I use .htaccess to override the directory to have any request for blah.js to be handled by php?</p>