0

What is the process of deploying FastAPI application on IIS? I am not using Docker container for it.

Manish Shegokar
  • 101
  • 1
  • 10
  • FastAPI needs a web server which implements ASGI protocol. See https://fastapi.tiangolo.com/#installation. However you can put IIS in front as a reverse proxy, see https://stackoverflow.com/questions/61919424/how-to-run-windows-iis-on-top-of-an-asgi-server-like-hypercorn-or-uvicorn – Anentropic Jul 20 '23 at 09:21
  • Python web apps on IIS should use HttpPlatformHandler, https://halfblood.pro/running-flask-web-apps-on-iis-with-httpplatformhandler/ – Lex Li Jul 20 '23 at 16:06

1 Answers1

0

You can refer to this guide to deploy python on IIS: Configure Python web apps for IIS.

In addition, Microsoft no longer recommends FastCGI, it has been deprecated, so this is no longer the correct way to host Python web applications on IIS. It is recommended that you can use HttpPlatformHanlder to host.

YurongDai
  • 1,362
  • 1
  • 2
  • 7