title: Why do I see 403 forbidden in Azure application gateway?
body: <p>The error I see when accessing <a href="https://www.example.com" rel="nofollow noreferrer">https://www.example.com</a> regardless of whether I have a listener (443) and rule is:</p>
  
  <pre><code>403 - Forbidden
  
  You don't have permission to access / on this server.
  </code></pre>
  
  <p>If I add a listener on port 443, attach a valid certificate and rule, I get the same error message. If I dig www.example.com, I can see it's resolving to the public IP of the application gateway.</p>
  
  <p><a href="http://www.example.com" rel="nofollow noreferrer">http://www.example.com</a> works as expected with a listener on port 80 and rules directing traffic to backend virtual machines hosting Apache.</p>
  
  <p>I should add that this has been set using the Azure Portal. Should I be using PowerShell? Some forums suggest the portal is flaky.</p>