Questions tagged [wfastcgi]

wfastcgi.py provides a bridge between IIS and Python using WSGI and FastCGI, similar to what mod_python provides for Apache HTTP Server. It can be used with any Python web application or framework that supports WSGI, and provides an efficient way to handle requests and process pools through IIS.

Microsoft developed this component as part of the Python extensions for Azure App Service on Windows initially.

Note that Microsoft has deprecated the Python extensions, so you should switch to Linux.

https://learn.microsoft.com/en-us/visualstudio/python/managing-python-on-azure-app-service?view=vs-2017

Important

Microsoft has deprecated the Python extensions for App Service on Windows as described in this article in favor of a direct deployment to App Service on Linux.

81 questions
0
votes
0 answers

Wfastcgi web.config

I have a flask app running through IIS 10. wfastcgi loaded into app folder. app file is app.py. I cannot figure out how wfastcgi is pointing to the app.py file? I had a web.config file in the same folder. All it contained…
0
votes
0 answers

Http dont load but Https works. Flask, Fastcgi, IIS

I have a page public with Flask, using like handler Wfastcgi and IIS to compilate. The site works correctly using https but when i write the site with http that broke with timeout. I tried changing in my index.py but didn't work, i used…
0
votes
0 answers

Error 500 InternalServerError when use httprequest call API (python flask) with long time response

I build a service to call API from Python flask. This is my Service public string CheckStatus(string json) { Utils log = new Utils(); string ResponseString = ""; HttpWebResponse response = null; try { …
0
votes
1 answer

Whice configuration is better ? configure FastCGI module on IIS for a django web app using wfastcgi.exe or python.exe with an argument wfastcgi.py

So I have been learning to deploy a django web application on IIS Web Server. I had successfully deployed it. However, when configuring FastCgiModule on handler mapping, I noticed that the requested executable optional are .dll or .exe file. capture…
hndrbs
  • 1
0
votes
1 answer

2 IIS Flask sites on Windows Server - Only 1 runs

Windows Server DataCenter 2019 Python 3.7.6 I have 2 sites configured on IIS. mysite1 port 9090: Runs using VSCode and entering URL in browser Runs from VSCode Enter URL in Browser: ###.###.###.###:9090 mysite2 port 9566: Only runs from…
G. Young
  • 41
  • 1
  • 7
0
votes
1 answer

Flask app IIS: Keep getting 404 when routing to other pages

I need help on how to make routing in my flask app hosted using IIS windows server 2012 possible. The home [starting page] works though also cannot load images but it works. The error I get is 404 whenever I click on links leading to other pages in…
Kas Barlow
  • 101
  • 2
  • 7
0
votes
1 answer

Django - IIS deployment - scriptProcessor could not be found

I have been trying to deploy django application using IIS but after following all the steps i am getting below error scriptProcessor could not be found in application configuration I understand this error is due to incorrect…
Ronak
  • 187
  • 2
  • 17
0
votes
1 answer

Deploy Python Flask on IIS 10 - post route failure

I have a Flask App with Python 3.9 (I used different versions of Python same problem) my iis server Version is 10. In my App I have 4 different post routes. 3 of them work like a charm. When I call the fourth one which is almost the same like the…
0
votes
1 answer

How to serve multiple apps on the same pool IIS?

I have a Windows Server 2019, running IIS. I use WFASTCGI to serve my Flask apps according to a specific IP and port (for instance 151.80.60.225:5000), and my web.config file works well. However, I want to serve multiple apps on the same IP:port…
Fred
  • 169
  • 1
  • 3
  • 19
0
votes
1 answer

iis flask blueprints 404 page not found

My structure Project api ..app.py ....webapp ......init.py ......user ........init.py ........routes.py ......report ........init.py ........routes.py app.py import os from webapp import create_app env = os.environ.get('FLASK_ENV') app =…
nickb84
  • 591
  • 2
  • 6
  • 11
0
votes
1 answer

500 Internal Server Error when uploading file >~120kb to Flask web app running on Windows IIS Server with wfastcgi

I'm currently experiencing an issue on a Flask web app running on Windows IIS whereby uploading a file with size greater than around 120kb through the app results in a '500 Internal Server Error'. Any files that are smaller than this seem to work…
lc-51
  • 99
  • 2
  • 7
0
votes
1 answer

Can't deploy application

I'm facing an issue with my Django Application Deployment. I have followed several tutorials ( lastly this one : https://www.youtube.com/watch?v=APCQ15YqqQ0) to help me deploy my application, I don't understand why my Handler is not working. Here is…
aliitaqk
  • 65
  • 1
  • 8
0
votes
2 answers

Python flask app on IIS not working on Windows Server 2019

PROBLEM I have simple flask application written in python that I would like to host using IIS on a Windows Server 2019 machine. The app has already worked locally using the development server that comes with Flask. Furthermore the exact same code…
jedwards
  • 1
  • 2
0
votes
1 answer

IIS - Flask python script webconfig error wfastcgi

I am enabling flask python script with wfastcgi over IIS. I have installed and enabled wfastCGI. However after i create a website and add webconfig file with below details -
goe
  • 337
  • 2
  • 14
0
votes
1 answer

download of larger static file stops using Flask on IIS10 and Windows Server 2019

After a day of trying all kinds of hints from the web I am out of ideas with this one: I have the simplest Flask app serving a static 600MB file to download. After about 1,5-2 minutes or about 80-280MB (so not at all after the same amount of bytes…
norman
  • 599
  • 1
  • 5
  • 14