docs: small update to IIS proxy docs

This commit is contained in:
Daniel Lee 2018-01-16 09:49:12 +01:00
parent 08211eb220
commit 87064bff79
2 changed files with 7 additions and 4 deletions

View File

@ -77,13 +77,14 @@ Given:
- subpath `grafana`
- Grafana installed on `http://localhost:3000`
- server config:
```bash
[server]
domain = localhost:8080
root_url = %(protocol)s://%(domain)s:/grafana
```
Create an Inbound Rule for the parent website (localhost:8080 in this example) with the following settings:
Create an Inbound Rule for the parent website (localhost:8080 in this example) in IIS Manager with the following settings:
- pattern: `grafana(/)?(.*)`
- check the `Ignore case` checkbox
@ -91,7 +92,7 @@ Create an Inbound Rule for the parent website (localhost:8080 in this example) w
- check the `Append query string` checkbox
- check the `Stop processing of subsequent rules` checkbox
The rewrite rule that is generated for the web.config:
This is the rewrite rule that is generated in the `web.config`:
```xml
<rewrite>
@ -103,3 +104,5 @@ The rewrite rule that is generated for the web.config:
</rules>
</rewrite>
```
See the [tutorial on IIS Url Rewrites](http://docs.grafana.org/tutorials/iis/) for more in-depth instructions.

View File

@ -9,14 +9,14 @@ weight = 10
# How to Use IIS with URL Rewrite as a Reverse Proxy for Grafana on Windows
If you want Grafana to be a subdomain under a website in IIS then the URL Rewrite module for ISS can be used to support this.
If you want Grafana to be a subpath or subfolder under a website in IIS then the URL Rewrite module for ISS can be used to support this.
Example:
- Parent site: http://localhost:8080
- Grafana: http://localhost:3000
Grafana as a subdomain: http://localhost:8080/grafana
Grafana as a subpath: http://localhost:8080/grafana
## Setup