Open IIS, and click on the Default Web Site. Within the features view of the Content Pane, select the Handler Mappings icon. Double-click to open it. Select Add Module Mapping from the right pane. When the Add Module Mapping interface appears, enter the following:
- Add an asterisk (*) to the request path entry.
- Select the FastCGI module from the Module Selection List.
- If you copied the wfastcgi.py file into the code path and the code is at C:website, enter this into the executable entry: C:Python36python.exe|C:websitewfastcgi.py.
- Optionally, the wfastcgi.py file in the Scripts folder can be used. Here is the setup: C:Python36python.exe|C:Python36Scriptswfastcgi.py.
- Click on Request Restrictions and uncheck the Invoke handler only if request is mapped to: if it is checked. Click OK.
- Click OK on the Add Module Mapping interface.
- Click Yes on the confirmation.