|
1 | 1 | # Install PxWebApi 2.0 on your IIS server |
| 2 | + |
2 | 3 | This instruction guides you in how to install PxWeb 2.0 on IIS. |
3 | 4 |
|
4 | 5 | ## Prerequisites |
5 | | -- A supported Windows server with IIS installed. |
| 6 | + |
| 7 | +- A supported Windows server with IIS installed. |
6 | 8 | - ApiUrl to your PxWebapi2 installation. |
7 | | - If your tables endpoint is at "https://your.api.server/PxWeb/api/v2/tables" |
8 | | - then your ApiUrl is "https://your.api.server/PxWeb/api/v2" (omit a trailing slash, one is added automatically) |
| 9 | + If your tables endpoint is at `https://your.api.server/PxWeb/api/v2/tables` |
| 10 | + then your ApiUrl is `https://your.api.server/PxWeb/api/v2` (omit a trailing slash, one is added automatically) |
9 | 11 |
|
10 | 12 | ## Installation steps |
11 | | -- Download the [zip file for the latest release](https://github.com/pxtools/PxWeb2/releases/latest) from GitHub. |
| 13 | + |
| 14 | +1. Download the [zip file for the latest release](https://github.com/pxtools/PxWeb2/releases/latest) from GitHub. |
12 | 15 | It is found inside the Asserts heading. |
13 | 16 | Make sure to _Unblock_ it if its block by right clicking on it in _File Explorer_ and check the `Unblock` checkbox. |
14 | | -- Put the contents of the zip file to the location of your choice. E.g `C:\inetpub\wwwroot\pxweb2`. |
15 | | -- Adjust `baseApplicationPath` and `apiUrl` in `config\config.js`: |
| 17 | +1. Put the contents of the zip file to the location of your choice. E.g `C:\inetpub\wwwroot\pxweb2`. |
| 18 | +1. Adjust `baseApplicationPath` and `apiUrl` in `config\config.js`: |
16 | 19 |
|
17 | | - ```js |
18 | | - baseApplicationPath: "/pxweb2/" |
19 | | - |
20 | | - apiUrl: "your api url" |
21 | | - ``` |
| 20 | + ```js |
| 21 | + baseApplicationPath: "/pxweb2/" |
| 22 | + |
| 23 | + apiUrl: "your api url" |
| 24 | + ``` |
22 | 25 |
|
23 | | -- In `index.html`, adjust the `<base>` tag: |
| 26 | +1. In `index.html`, adjust the `<base>` tag: |
24 | 27 |
|
25 | | - ```html |
26 | | - <base href="/pxweb2/"> |
27 | | - ``` |
| 28 | + ```html |
| 29 | + <base href="/pxweb2/"> |
| 30 | + ``` |
28 | 31 |
|
29 | | -- I didnt need this: Ensure the web server rewrites (if needed) static file requests correctly to that subpath. |
| 32 | +1. I didnt need this: Ensure the web server rewrites (if needed) static file requests correctly to that subpath. |
30 | 33 |
|
31 | | -- In IIS find the folder and convert it to application. ( Concider using a separate Application pool for this :-) ) |
| 34 | +1. In IIS find the folder and convert it to application. ( Concider using a separate Application pool for this :-) ) |
32 | 35 |
|
33 | | -- Open "http(s)://"server adress"/pxweb2 . |
| 36 | +1. Open "http(s)://"server adress"/pxweb2 . |
0 commit comments