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. 

2
  • 1
    halfblood.pro/… You will get some ideas from this. "We recommend using HttpPlatform to configure your apps, as the WFastCGI project is no longer maintained." Commented Dec 7, 2022 at 15:27
  • Hello @LexLi Thanks I'll try provide link solution Commented Dec 7, 2022 at 16:07

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.