I want to capture any subdomain and pass it along to a handler.
Example: r"(ilovebacon)\.xyz\.com" or r"(snakekebab)\.xyz\.com"
I looked at Application().add_handlers(), but I don't see any way to pass host_pattern to URLSpec instance.
Does this mean:
I need to do proxy_pass on nginx? Like this:
if ( $host ~ ^(.+)\.xyz\.com$ ) {
proxy_pass http://xyz.com/userspace/$1;
}
- Didip -