if you want to have other domains - just add sever blocks (block per 
domain) with server_name  www.mydom.com (or you can use regex to hold 
several doamins by one sever block );
If you want to have web2py app per doamin - specify location in  more 
explicit form - /myapp/     instead just /
see the doc:   nginx.org/docs/http/ngx_http_core_module.html 
<http://nginx.org/docs/http/ngx_http_core_module.html#server>



On Monday, February 19, 2018 at 8:41:27 PM UTC+3, 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
>

-- 
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.

Reply via email to