On Monday, February 19, 2018 at 9:41:27 AM UTC-8, lucas wrote: > > hello one and all, > > i have run bash shell script "setup-web2py-nginx-uwsgi-centos7.sh" from > under web2py scripts on centos 7.4, web2py 2.16.1, and nginx 1.12.2. and > everything is working for a single domain. ssl and comodo certificates are > working also. right now, i have all of the configuration under the above > bash shell script, the /etc/nginx/nginx.conf file. > > so i want to setup a second domain, 3rd, that would point to a separate > seconddomain.com/app2 application under the web2py install directory. > how do i setup a second /etc/nginx/conf.d file, or two under > /etc/nginx/conf.d files, one for each domain pointing to the proper domain > and web2py application, along with the changes in nginx.conf file? > > i've read a lot but it is hard to make sense since uWSGI and web2py are in > the mix now also. > > thank you, lucas >
If have the original setup using firstdomain.com ,wouldn't you just add a new server section to the nginx conf file? You could use nginx rewrite rules to add "/app2" if you wanted it to be the default application for seconddome.com. I'm suggesting that because I'm not sure how to tell routes.py how to distinguish the 2 domains so that it handles 2 defaults. /dps -- 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/d/optout.