[web2py] Re: How to serve multiple domains and multiple applications on nginx using pattern-based route

2013-10-09 Thread Gour
On Fri, 4 Oct 2013 19:32:36 -0700 (PDT) IVINH toa...@gmail.com wrote: Nginx config: In my case Nginx is setup as reverse-proxy and it dispatches reuqests to gunicorn listening on local port. routes_in = (( (('.*http://demo.ivinh.com.* /*', '/demo')), (('.*http://demo1.ivinh.com.* /*',

[web2py] Re: How to serve multiple domains and multiple applications on nginx using pattern-based route

2013-10-09 Thread Gour
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

[web2py] Re: How to serve multiple domains and multiple applications on nginx using pattern-based route

2013-10-09 Thread Gour
On Wed, 9 Oct 2013 09:51:35 +0200 Khalil KHAMLICHI khamlichi.kha...@gmail.com wrote: hope this helps. Ahh...forgot to restart gunicorn. :-( All is well now or web2py rocks. ;) Sincerely, Gour -- As the embodied soul continuously passes, in this body, from boyhood to youth to old age, the

Re: [web2py] Re: How to serve multiple domains and multiple applications on nginx using pattern-based route

2013-10-08 Thread IVINH
It work with web2py 2.6.4. Pls review your routes file. Vào 23:36:13 UTC+7 Thứ hai, ngày 07 tháng mười năm 2013, Tito Garrido đã viết: This route didn't work for me... routes_in = (( (('.*http://demo.ivinh.com.* /*', '/demo')), (('.*http://demo1.ivinh.com.* /*', '/demo1')) )) Not sure

Re: [web2py] Re: How to serve multiple domains and multiple applications on nginx using pattern-based route

2013-10-07 Thread Tito Garrido
This route didn't work for me... routes_in = (( (('.*http://demo.ivinh.com.* /*', '/demo')), (('.*http://demo1.ivinh.com.* /*', '/demo1')) )) Not sure it is because I am using uwsgi... it keeps going to the default website... On Sat, Oct 5, 2013 at 4:30 PM, Tito Garrido titogarr...@gmail.com

Re: [web2py] Re: How to serve multiple domains and multiple applications on nginx using pattern-based route

2013-10-05 Thread Tito Garrido
Thanks!!! I will try! On Fri, Oct 4, 2013 at 11:32 PM, IVINH toa...@gmail.com wrote: Nginx config: server { listen 80; server_name demo.ivinh.com www.demo.ivinh.com; include deny_admin.txt; access_log logs/demo.ivinh.com.access.log; error_log logs/demo.ivinh.com.error.log;

[web2py] Re: How to serve multiple domains and multiple applications on nginx using pattern-based route

2013-10-04 Thread IVINH
Nginx config: server { listen 80; server_name demo.ivinh.com www.demo.ivinh.com; include deny_admin.txt; access_log logs/demo.ivinh.com.access.log; error_log logs/demo.ivinh.com.error.log; location / { proxy_pass http://127.0.0.1:86; proxy_set_header Host demo.ivinh.com; include