[web2py] Re: How can I run multiple applications with multiple domains on nginx?

2017-10-12 Thread pbreit
Is this the best way to set up multiple domains on one server with Nginx or better to set up nginx "sites-available" etc configs? On Saturday, March 23, 2013 at 3:01:38 AM UTC-7, peter wrote: > > Sorry about replying late Tito. I struggled with your problem for quite a > while, and here is a

Re: [web2py] Re: How can I run multiple applications with multiple domains on nginx?

2013-05-08 Thread Tito Garrido
Hi Peter! It helps a lot! I didn't know that we could have another routes.py inside the application folder, is it described anywhere in the book? Thanks! Tito On Sat, Mar 23, 2013 at 7:01 AM, peter peterchutchin...@gmail.com wrote: Sorry about replying late Tito. I struggled with your problem

[web2py] Re: How can I run multiple applications with multiple domains on nginx?

2013-03-23 Thread peter
Sorry about replying late Tito. I struggled with your problem for quite a while, and here is a solution. In the web2py folder have a routes.py like this #!/usr/bin/python # -*- coding: utf-8 -*- routes_app=[ ('.*://www.site1.com:\w* /$anything','app1'),

[web2py] Re: How can I run multiple applications with multiple domains on nginx?

2013-03-21 Thread Massimo Di Pierro
Yes you can. From the point of nginx treat all domains as one. the use web2py routes.py to map different domains to different apps. On Monday, 18 March 2013 15:21:25 UTC-5, Tito Garrido wrote: Hi Folks, I am reading the book section: http://web2py.com/books/default/chapter/29/13#Nginx