On Wed, 9 Oct 2013 09:51:35 +0200
Khalil KHAMLICHI
<khamlichi.kha...@gmail.com> wrote:

> supposing you have the correct dns settings for those domaines, you
> only need to modify the routes.py file located inside web2py
> directory .

I did not find any existing routes.py file?

> here is a working file example (I am using it)
> 
> # -*- coding: utf-8 -*-
> 
> routers = dict(
>     BASE = dict(
>         domains = {
>             'www.example1.com': 'app1',
>             'www.example2.com': 'app2',
>         }
>     ),
> )

With the above one I always get the default 'welcome' app, although set
my domains to map to cloned apps.

I've:

routers = dict(
    BASE = dict(
        domains = {
            'domain1.com': 'welcome',
            'domain2.com': 'clone2',
            'domain3.com': 'clone3',
        }
    ),
)

If I visit: www.domain2.com/clone2 I get access to 'clone2' app.

Probably I do miss something..will do some more reading...

> hope this helps.

Yes. Is the above-like setup also recommended in the practice?

I'm asking 'cause it really makes deploying web2py-powered sites (aka
apps) breeze in comparison with the fiddling required for django sites.


Sincerely,
Gour

-- 
One who restrains the senses of action but whose mind dwells on 
sense objects certainly deludes himself and is called a pretender.

http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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