We’re trying to reverse proxy requests from https://ai.dl-sounds.com/inspiration to a FastAPI (Uvicorn) server running on 127.0.0.1:8000.
We're running
Goal: make /inspiration correctly reverse proxy to Uvicorn (FastAPI), with working HTTPS on ai.dl-sounds.com
What’s the correct way to achieve this with OpenLiteSpeed?
We're running
- OpenLiteSpeed 1.7.18 on AlmaLinux 9
- Python 3.11 + Uvicorn (FastAPI app)
- DirectAdmin
- Domain uses valid SSL cert (Let’s Encrypt via DirectAdmin)
- The vhconf.conf has a <context /inspiration> block with handler http://127.0.0.1:8000
- The FastAPI app works fine when accessed directly (via curl)
- .htaccess is ignored, even though <htAccess> enable 1 </htAccess> is set
- We cannot use the OpenLiteSpeed admin panel - it's read-only on our setup
- All requests return 500 Internal Server Error
Goal: make /inspiration correctly reverse proxy to Uvicorn (FastAPI), with working HTTPS on ai.dl-sounds.com
What’s the correct way to achieve this with OpenLiteSpeed?