This is an example repository, to show how to run FastAPI behind Apache HTTP Server without reverse proxy, but using mod_cgid with a venv and the WSGIMiddleware instead.
This example is in a Docker container, so you can run it with:
> docker compose up
and check the result with:
> curl http://localhost:8080/api/
{"message":"Hello World ๐"}
โฆ but it is more meant to be a documentation and one can install the same everywhere.