start second guicorn 
You have to run your projects on different ports like firsrone on 8000 and 
secondone on 8001. Then in nginx conf, in place of location /, you have to 
write location /firstone/ and proxy pass this to port 8000 and then write 
same location object for second one as location /secondone/ and proxy pass 
it to port 8001.


some example 
http://michal.karzynski.pl/blog/2013/10/29/serving-multiple-django-applications-with-nginx-gunicorn-supervisor/


понедельник, 1 июля 2019 г., 16:23:30 UTC+3 пользователь Áureo Dias Neto 
написал:
>
> 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/31ee98f9-04c9-48a5-966e-52ce19439fcf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to