Yes. For example I have this in my routes.py file:

routes_in=[
    ('^.*:https?://(www.)?fermiqcd.com:\w+ /','/fermiqcd'),
    ('^.*:https?://(www.)?experts4solutions.com:\w+ /','/e4s'),
    ('^.*:https?://evote.experts4solutions.com:\w+ /','/evote'),
    ('^.*:https?://(www.)?ptolincoln.org:\w+ /','/pto'),
    ('^.*:https://(.*)election.name:\w+ /','/evote'),
    ('/','/examples/default/index'),
    ('/robots.txt','/examples/static/robots.txt'),
    ('/favicon.ico','/examples/static/favicon.ico')]

It tells how to map paths (for each domain) into which web2py application.



On Sunday, 14 July 2013 18:22:31 UTC-5, Marcio Andrey Oliveira wrote:
>
> Hi.
>
> Currently I have 3 arcade sites: 1 with all kinds of games, 1 with only 
> girls games and another one with only escaping games.
>
> Each site is running in a separated script, and worst than that is that I 
> have some games in girls game site and on escaping games sites that exist 
> on general arcade site. It means I'm expending database and disk space with 
> duplicated date.
>
> I want to make one application that will receive requests from all domains 
> and according to the domain, it will show a different look and feel with 
> its respective games.
>
> How do I do it in web2py? I mean, how do I handle resources based in the 
> domain user typed in browser? 
>
> Regards.
>

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to