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
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
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/8c44c54f-4770-21a0-9104-52fe4bc69660%40gmail.com.