Yes, that should work. I have three web2py instances on a server running nginx/uwsgi, and the principle's the same: slightly different configs for each instance, pointing to separate source files.
On Tuesday, 21 January 2020 11:37:55 UTC, Manuele wrote: > > Hi! > > If I need to manage on the same server two different web2py instances > (for example for having two distinct versions of web2py running) what > are the differences I have to consider with what reported in > documentation[1]? > > At the moment I already have the first instance running through wsgi mod > using this configuration > > <VirtualHost *:80> > > ServerAdmin d...@colouree.com <javascript:> > ServerName apps.mycompany.com > > RewriteEngine On > RewriteCond %{HTTPS} !=on > RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] > > CustomLog /var/log/apache2/access-apps.log common > ErrorLog /var/log/apache2/apps.error.log > </VirtualHost> > > <VirtualHost *:443> > > ServerAdmin d...@colouree.com <javascript:> > ServerName apps.mycompany.com > > SSLEngine on > > WSGIDaemonProcess web2py python-home=/path/to/pyenv27 user=myuser > group=mygroup processes=1 threads=1 > WSGIProcessGroup web2py > WSGIScriptAlias / /path/to/web2py/wsgihandler.py > WSGIPassAuthorization On > > <Directory /path/to/web2py> > AllowOverride None > Require all denied > <Files wsgihandler.py> > Require all granted > </Files> > </Directory> > > AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) > /path/to/web2py/applications/$1/static/$2 > > <Directory /path/to/web2py/applications/*/static/> > Options -Indexes > ExpiresActive On > ExpiresDefault "access plus 1 hour" > Require all granted > </Directory> > > Include /etc/letsencrypt/options-ssl-apache.conf > > CustomLog /var/log/apache2/ssl-apps-access.log common > ErrorLog /var/log/apache2/apps-error.log > ServerAlias applications.colouree.com > SSLCertificateFile /etc/letsencrypt/live/ > apps.mycompany.com/fullchain.pem > SSLCertificateKeyFile > /etc/letsencrypt/live/apps.mycompany.com/privkey.pem > </VirtualHost> > > can I simply duplicate it changing essentials informations such > WSGIDaemonProcess definition (I'd like to specify even the path to a > different virtualenv based on python 3 in the second case) and other > stuff? > > Thank you very much > > Best regards > > Manuele > > [1] http://web2py.com/books/default/chapter/29/13/deployment-recipes > > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/7619ac9c-549f-49fb-87b8-3cb6d10a3747%40googlegroups.com.