Good morning group,

I'm using web2py on nginx + gunicorn, I currently have two applications 
with two different domains, one for each web2py application ..

Each domain points to my ip in AWS and nginx, each domain has a file in 
nginx with its settings and server_name corresponding to its domain with 
location pointing to / web2py / applications

My routes.py file follows the pattern:

routers = dict (
    BASE = dict (
        domains = {
            'exampleapp.com': 'exampleapp',
            'anotherexample.com': 'anotherexample',
        }
    ),
)

however, whenever you access exampleapp.com or any other domain listed 
there, I'm redirected to exampleapp.com/welcome

I can only run an app with the following configuration in the routes.py file

routers = dict (
    BASE = dict (
        default_application = 'exampleapp',
        domains = {
            'exampleapp.com': 'exampleapp',
            'anotherexample.com': 'anotherexample',
        }
    ),
)

so both exampleapp.com and anotherexample.com redirect to exampleapp.

How to proceed?
Hugs

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/94033ac1-7bb1-4cba-8d00-9a82424e18d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to