On Jan 7, 2011, at 1:56 PM, VP wrote:
>
> Thanks.
> What if I have something like this:
>
> example1.com /app1/controller1
> example1.net /app1/controller2
>
> How would this translate into this new syntax?
OK, I've submitted a patch that allows this. The syntax:
domains = {
'example1.com' : 'app1/controller1',
'example1.net' : 'app1/controller2',
}
Unlike the regex mechanism, the new router is aware of the requesting domain
when it rewrites outgoing URLs, so it rewrites cross-domain URLs properly.
You can also use ports in this case and others:
domains = {
'example1.com:80' : 'app1/controller1',
'example1.com:8080' : 'app1/controller2',
}