permission denied to access localhost
<p>I'm using ubuntu 15.04 with apache2
I add this code below to make my web site only accessible from localhost</p>

<pre><code>            &lt;Directory /&gt;
                    Order deny,allow
                    Deny from all
                    Allow from localhost
                    Options -Indexes -ExecCGI
            &lt;/Directory&gt;
</code></pre>

<p>but unfortunately this don't give me permission 
I know that the order of allow and deny is important, here I'm excpecting that apache2 deny from any host or ip and then just allow localhost, Do what I said is right or I'm misunderstanding how this works ?</p>