Install PxWebApi 2.0 on your IIS server¶
This instruction guides you in how to install PxWeb 2.0 on IIS.
Prerequisites¶
- A supported Windows server with IIS installed.
- ApiUrl to your PxWebapi2 installation.
If your tables endpoint is at
https://your.api.server/PxWeb/api/v2/tables
then your ApiUrl ishttps://your.api.server/PxWeb/api/v2
(omit a trailing slash, one is added automatically)
Installation steps¶
- Download the zip file for the latest release from GitHub.
It is found inside the Asserts heading.
Make sure to Unblock it if its block by right clicking on it in File Explorer and check the
Unblock
checkbox. - Put the contents of the zip file to the location of your choice. E.g
C:\inetpub\wwwroot\pxweb2
. -
Adjust
baseApplicationPath
andapiUrl
inconfig\config.js
:baseApplicationPath: "/pxweb2/" apiUrl: "your api url"
-
In
index.html
, adjust the<base>
tag:<base href="/pxweb2/">
-
I didnt need this: Ensure the web server rewrites (if needed) static file requests correctly to that subpath.
-
In IIS find the folder and convert it to application. ( Concider using a separate Application pool for this :-) )
-
Open "http(s)://"server adress"/pxweb2 .