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

Is it possible to connect to two servers in one web app (python, pyodbc, flask)?

I have a problem: I connected to DB on one server (the one thats app is running) and it works fine. But if I want to connect to other DB on other server, it doesn't work - 500 error pops up. It seems like there's a problem even with connecting to…
0
votes
0 answers

How to install wfastcgi on server without internet?

I have to install python package wfastcgi.py to get my web app run on individual server. IIS and Flask are working properly I guess. I tried a lot of ways and I have no idea. I want to start all over again with concrete instructions. Pip also…
0
votes
1 answer

Unable to host django on IIS using Fast CGI (wfastcgi). Getting 500 error in browser

I am unable to host a basic django project in IIS. I have been breaking my head over 2 days now and help would be greeeaaatly appreciated :). I have enabled IIS, CGI, and others under the Application Development in IIS. This is my folder structure…
MagnumCodus
  • 171
  • 1
  • 11
0
votes
0 answers

Global variables and start/stop code for Python Bottle WSGI application

I have a Python application that interfaces with a licensed Windows-based program, and I need to provide a web-based interface (using GET/POST requests) for this Python application. I am using IIS as the web server for this interface, because we…
Nick2253
  • 329
  • 3
  • 12
0
votes
2 answers

Can't get dash app run on IIS with flask server

I have two websites (both are using Dash & Flask) on my IIS (Windows Server 2016). The first one is a minimal working example consisting of app.py and web.config. For somehow I cannot get the second site working. Below both examples and the error…
Umut885
  • 165
  • 1
  • 15
0
votes
2 answers

Disable replica services in Web Apps

I have written a service that reads from the file system in order to determine state, and holds that state for a while instead of constantly updating the file system. Therefore it's paramount that there is only one instance of that service. Now it…
Felix
  • 2,548
  • 19
  • 48
0
votes
1 answer

IIS wfastcgi django request timeout after 100s, how to make it longer?

i got a django app to extract some data from very big tables. the users are ok with the long waiting time. but every time the users visit the url, it timeout after 100s. How to make it waiting longer? IIs seems to have no configuration for this.
Wangwang
  • 159
  • 1
  • 15
0
votes
2 answers

Deployed Flask app to windows Azure and receive wfastcgi error

I have been trying to deploy a website to Azure with App services. I have used a requirements.txt file to install flask and wfastcgi and other needed dependencies also I am using Python 3.6. I have setup the web.config file to properly start python…
Sterling Dunn
  • 57
  • 1
  • 7
0
votes
0 answers

Why doesn't IIS Authorization seem to deny access to User Groups

I've a site hosted on IIS7. The site uses Flask with wfastcgi incase that's relevant. It's not publicly facing so I'm trying to just use Windows Authorization to block user groups that I don't want to be able to access it, so I have my web.config…
Dan Scally
  • 1,922
  • 1
  • 19
  • 31
0
votes
0 answers

HTTP Error 500.0 - Internal Server Error Unable to place a FastCGI process in a JobObject. Try disabling the Application Pool CPU Limit feature

I am trying to run my Django project on an IIS server using wfastcgi. I keep getting this error. I have tried adjusting the CPU limit settings for the Application pool but this error is still occurring. How can I completely disable the CPU Limit…
0
votes
0 answers

How to setting wfastcgi make flask server run in Production mode?

I am using wfastcgi intergrate flask server to IIS, even when I setting environment variable FLASK_CONFIG=production in system , the flask server always run in development mode, any suggustion?
Kamil
  • 594
  • 1
  • 8
  • 28
0
votes
0 answers

How do you upload your Web app to a production server?

I used this tutorial to get Flask running on an IIS server, and the test app works great. Now, I have developed a web app in Visual Studios 2013 and it works great on the localhost dev server. When I transfer the files to the server I get the…
Groc
  • 75
  • 1
  • 9
0
votes
0 answers

Deploy flask by wfastcgi to IIS, logging not work in blueprint

I use python logging, it works well in simple code, when I deploy it on IIS using wfastcgi: from flask import Flask from LarkLog import LarkLog app = Flask(__name__) @app.route("/") def hello(): LarkLog.Debug('hello!') return "Hello…
Kamil
  • 594
  • 1
  • 8
  • 28
0
votes
0 answers

Django + IIS Error 500

trying to place my project in production with iis I get an error trying to access from my own computer with the browser:  Error occurred while reading WSGI handler: Traceback (most recent call last): File…
Anthony
  • 57
  • 1
  • 10
0
votes
1 answer

Error when deploying Flask application on IIS

I am having some trouble hosting a Flask web service onto Windows Server through IIS. I have followed the tutorial found here: https://medium.com/@bilalbayasut/deploying-python-web-app-flask-in-windows-server-iis-using-fastcgi-6c1873ae0ad8 And have…
Gthoma2
  • 687
  • 1
  • 9
  • 22