-1

I have deployed Python Webservice using Flask and fastcgi in IIS server,

https://medium.com/@bilalbayasut/deploying-python-web-app-flask-in-windows-server-iis-using-fastcgi-6c1873ae0ad8

It works fine with 8080 port enter image description here

But Other existing IIS applications are stopped wotking its throws following error

enter image description here

So Kindly help me to fix the issue.

Note : I am new to Python.

Community
  • 1
  • 1
  • Is your issue solved?If your issue is solved then I request you to mark the helpful suggestion as an answer. This will help other people who face the same issue. – Jalpa Panchal Dec 26 '19 at 03:19

1 Answers1

0

First, remove the fast CGI environment variable which you set as below:

enter image description here

now select your site and then double click on the application setting.

click add from the action pane.

enter image description here

Set the PYTHONPATH variable(which is your site folder path):

enter image description here

And the WSGI_HANDLER (my Flask app is named app.py so the value is app.app — if yours is named site.py it would be site.app or similar):

enter image description here

Click OK and browse to your site.

Jalpa Panchal
  • 8,251
  • 1
  • 11
  • 26