IIS URL Rewrite won't resolve

I followed the guide as written in https://grafana.com/docs/tutorials/iis/ and am unable to get it to resolve correctly. I am getting a 404 error despite anything I’ve tried.

  • Windows Server 2019
  • IIS 10.0
  • Latest EXE install of Grafana
  • Can successfully authenticate to localhost instance

Here’s a list of what I’ve done so far

  1. Made a copy of sample.ini and set it to custom.ini
  2. Updated the domain to match the server. The server is structured like http://graf.mycompany.org so I’ve got it set to
    domain = app.mycompany.org
  3. http_port was changed to
    http_port = 8081
  4. root_url is
    root_url = %(protocol)s://%(domain)s/grafana
  5. I’ve set server_from_sub_path = true
  6. Changed statis_root_path = public
  7. I can successfully access the local Grafana install when I log onto the server itself at http://localhost:8081/grafana
  8. I installed the URL Rewrite tool for IIS
  9. Configured the inbound rule per the instructions in the tutorial
  10. But when I try to access http://graf.mycompany.org/grafana I get a 404 Not Found

I’m hoping someone can give me some ideas on where to go next. I’ve even done a iisreset after adding the rewrite rule to see if that would help.

Put the root_url like below:
root_url = http://graf.mycompany.org/grafana

Fadjar Tandabawana

Thanks for the information, I ended up finding out the problem and this may be an issue with the tutorial. I had installed the URL Rewrite module in IIS, but through some research I found reference to ARR (Application Request Routing) that enables IIS to allow reverse proxy requests. Once I installed ARR, my requests worked and returned the application.