Hi,
I currently have a web2py app running on my server. Lets call it App1. I
created a VirtualHost for my Apache so that 'domain1' points to this app.
This app supports 2 languages (fr and en). I already have a certificate for
this domain, so, it is running in HTTPS.
Now, I want to add a second web2py app ('App2'), with another domain
('domain2') pointed to it.
So, I have 2 VirtualHosts, one for domain1 and one for domain2:
WSGIDaemonProcess web2py user=www-data group=www-data display-name=%{GROUP}
<VirtualHost *:443>
ServerName domain1
ServerAlias domain1
WSGIProcessGroup web2py
WSGIScriptAlias / /home/www-data/web2py/wsgihandler.py
....
</VirtualHost>
<VirtualHost *:80>
ServerName domain2
ServerAlias domain2
WSGIProcessGroup web2py
WSGIScriptAlias / /home/www-data/web2py/wsgihandler.py
...
</VirtualHost>
In routes.py:
routers = dict(
BASE = dict(
domains= {
'domain1' : 'App1',
'domain2' : 'App2',
}
),
App1 = dict(languages=['en', 'fr'], default_language='fr'),
)
With these settings, I cannot manage to have the 2 applications running at
the same time time : only the first App I visit will run correctly, the
other one returns an error 500, with this traceback:
Traceback (most recent call last):
File "/home/www-data/web2py/gluon/main.py", line 435, in wsgibase
session.connect(request, response)
File "/home/www-data/web2py/gluon/globals.py", line 931, in connect
session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL)
TypeError: 'NoneType' object is not callable
I can provide the full error ticket if needed.
It seems there is an error with session. I try to clean both apps with no
luck.
Note that I had to rename App2 (it had another name before). I simply
renamed the directory of App2. I don't know if it's causing my issue...
Any help?
Thanks!
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.