Fix #36: support non-default app.config['SERVER_NAME']