title: Grafana via reverse proxy in IIS
body: <p>I have trouble exposing grafana via reverse proxy in IIS.
  Grafana config is:</p>
  
  <pre><code>http_addr =
  http_port = 3000
  domain = stats.mydomain.com:80
  enforce_domain = false
  root_url = %(protocol)s://%(domain)s/grafana/
  serve_from_sub_path = true
  static_root_path = public
  </code></pre>
  
  <p>I successfully navigate to <a href="http://localhost:3000/grafana/" rel="nofollow noreferrer">http://localhost:3000/grafana/</a> and browse the graphs it serves.</p>
  
  <p>In iis, i registered the stats.mydomain.com website as a new website, then created a rewrite rule according to official guide:
  <a href="https://i.stack.imgur.com/Kcofd.png" rel="nofollow noreferrer">iis rewrite rule for grafana</a></p>
  
  <p>However, when i navigate to <a href="http://stats.mydomain.com/grafana/" rel="nofollow noreferrer">http://stats.mydomain.com/grafana/</a>, i get a 404 error.
  When I navigate to same website from server, the error is 404 and sub-error code is 4.</p>
  
  <p>May I please know what is wrong?</p>