title: Getting "You don't have permission to access / on this server" when trying to access web Application on EC2
body: <p><strong>Environment:</strong><br>
  Server: AWS EC2-WINDOWS 2012 R2<br>
  Web Server: Apache 2.4.17</p>
  
  <p>The simple web application, is accessible from the server, using the browser with <code>http://localhost/</code> and <code>http://127.0.0.1/</code> </p>
  
  <p>However, when I try to access it from outside (e.g., client, or any other machine through internet) by placing my ec2 instance public DNS ('ec2-.compute.amazonaws.com') in the browser, I get the following
  <a href="https://i.stack.imgur.com/Gz52j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Gz52j.png" alt="enter image description here"></a></p>
  
  <p>Now I know this is web server issue. EC2 security rules, and Windows Server firewall have been bypassed. The issue is coming from my Apache server settings. </p>
  
  <p>I spent significant time trying all possible solutions here:</p>
  
  <p><a href="https://stackoverflow.com/questions/8366976/wamp-error-forbidden-you-dont-have-permission-to-access-phpmyadmin-on-this-s">WAMP error: Forbidden You don't have permission to access /phpmyadmin/ on this server</a><br>
  <a href="https://stackoverflow.com/questions/19377476/forbidden-you-dont-have-permission-to-access-on-this-server-wamp-error">Forbidden: You don't have permission to access / on this server, WAMP Error</a><br>
  <a href="https://stackoverflow.com/questions/10873295/error-message-forbidden-you-dont-have-permission-to-access-on-this-server">Error message “Forbidden You don't have permission to access / on this server”</a><br>
  <a href="https://stackoverflow.com/questions/17442370/you-dont-have-permission-to-access-on-this-server">You don't have permission to access / on this server</a>   </p>
  
  <p>I did not create virtual host though. Do I need to?</p>
  
  <p>My current <code>httpd.conf</code> has the following settings:    </p>
  
  <pre><code>&lt;Directory "C:/wamp64/www/"&gt;
      Options Indexes FollowSymLinks MultiViews
      AllowOverride all
      Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <p>What could be the problem?</p>