 <p>Either use:</p> <pre><code>&lt;Directory /path/to/root&gt; Options +ExecCGI &lt;/Directory&gt; </code></pre> <p>or</p> <pre><code>&lt;Location /&gt; Options +ExecCGI &lt;/Location&gt; </code></pre> <p>See <a href="http://httpd.apache.org/docs/2.2/mod/core.html#directory" rel="nofollow noreferrer">Directory</a> and <a href="http://httpd.apache.org/docs/2.2/mod/core.html#location" rel="nofollow noreferrer">Location</a> in Apache docs.</p>