Aiohttp web server as virtualhost?

218 views Asked by At

It is necessary to add to the aiohttp Web server to support multiple domains. Possible routes to bind to domains? I would be grateful for an example.

1

There are 1 answers

0
Udi On BEST ANSWER

aiohttp is an HTTP client/server library for python, and not a standalone product. Applications built with aiohttp should probably be served behind a reverse proxy (such as nginx) that easily handles configuration options such as multiple domains/virtualhosts and much much more. Refer to aiohttp's deployment documentation for more info.