librelist archives

« back to archive

Subdomain routing for specific blueprint

Subdomain routing for specific blueprint

From:
김현준
Date:
2014-10-23 @ 03:47
Hello.

I'm looking at using subdomains in Flask application. I want to serve admin
pages on the subdomain separated to main service domain e.g.
admin.service.com.

Since we have to configure SERVER_NAME and default_subdomain of url_map to
enable the subdomain feature and use www. as default, however, the problem
is that we have more than one domain for application -- for example: some
view function serves both for www.service.com/images/<key> and
cdn.servicecdn.net/images/<key>.

Is there any practices on this kind of case? Any help and insights would be
greatly appreciated.

Thank you.