how do I get Flask blueprints to work with multiple domains?
It seems that having SERVER_NAME set in the os environment was causing this problem in conjunction with subdomains in blueprint registration. I removed SERVER_NAME from /etc/apache2/envvars and the subdomain logic and it worked.
I have a Flask app and want it to work for www.domain-a.net and www.domain-b.net behind Apache + WSGI. I can get it to work for one or the other, but can't find a way to get it to work for both. It seems that the domain which registers first is the only one that works.
Preferably this would work by having two Apache VirtualHosts set up to use the same WSGI config. I can get that part to work. But Flask just returns 404 for everything sent from the second VirtualHost.