I am trying to get a somewhat complex routing scheme to work, but haven't 
been able to with either of the routing systems.

Assume I have the following applications and domains they should be mapped 
to:

inventory -> inventory.example.com
admin -> monitor.example.com/admin
ipcheck -> monitor.example.com/ipcheck

onlineforms -> forms.example.com

I can make this work with the parameter based system like so:

routers = dict(
    BASE = dict(
        default_application = 'init',
        default_controller = 'default',
        applications = ['admin','ipcheck','init','onlineforms'],
        domains = { 
            'inventory.example.com' : 
'inventory',                                                                    
                    

            'forms.example.com' : 'onlineforms'
            }   
    )   
)

And it works just fine, removing the application name and controller from 
the URL where possible.

Now I want to add another application into the mix:
onlineformsadmin -> forms.example.com/admin

And I have no idea how to do that.

I messed with the pattern based routing, but it just gave me more problems.
For instance a line like:

('.*:https://inventory.example.com:.* .*', 'inventory')

in routes_app wouldn't stop requests to 
https://inventory.example.com/default from trying to go to the 'default' 
application.

In other words, unless I still specified inventory as the application, it 
wouldn't go there.

I know I could just add another subdomain with the parameter based system, 
but I would really like to avoid that and feel like I'm missing something 
here.

Any help would be appreciated. 
Thanks,
Kory

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to