0

I'm trying to host a Flask (Python) application on a Windows server, but it was giving me request timeout error, then I changed it to 300 seconds (5 minutes), and after that, it's giving me an activity timeout error, and I did the same for this, but then also after 5 minutes, it's giving me a request timeout error again. I've given the correct permissions to Python and ffmpeg (ffmpeg is used in my app).

Here is my web.config file

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <handlers>
      <add name="MyApp Handler" 
      path="*" 
      verb="*" 
      modules="FastCgiModule" 
      scriptProcessor="c:\users\<username>\appdata\local\programs\python\python38\python.exe|c:\users\<username>\appdata\local\programs\python\python38\lib\site-packages\wfastcgi.py"
      resourceType="Unspecified" 
      requireAccess="Script" />
    </handlers>
  </system.webServer>

  <appSettings>
    <add key="PYTHONPATH" value="C:\inetpub\wwwroot\myapp" />
    <add key="WSGI_HANDLER" value="app.app" />
  </appSettings>
</configuration>

Please let me know if anything else is required in the comments. 

Ankit Tiwari
  • 101
  • 1
  • 1
    https://halfblood.pro/running-flask-web-apps-on-iis-with-httpplatformhandler/ You will get some ideas from this. "We recommend using HttpPlatform to configure your apps, as the WFastCGI project is no longer maintained." – Lex Li Dec 07 '22 at 15:27
  • Hello @LexLi Thanks I'll try provide link solution – Ankit Tiwari Dec 07 '22 at 16:07

0 Answers0