Multi-domain flask configuration

I need to configure a flash application to handle requests from any host in the HTTP header

If any fqdn is specified in SERVER_NAME, I have a 404 error if the request is sent with any other domain. How to define SERVER_NAME in configuration?

How can I request / route / display an HTTP host name?

+4
source share
2 answers

Use app.run(host='0.0.0.0')if you want the flag to accept any host name.

0
source

To resolve any domain name simply remove "SERVER_NAME" from the application configuration

0
source

All Articles