Hello Niphlod,
The double WSGIScriptAlias is because the web2py apps aren't the only thing
served by apache, so I can't just alias everything to wsgihandler.py.
Actualy there are some more WSGIScriptAlias as there are more web2py apps
on the server.
Anyway, I did a test with just the following WSGIScriptAlias:
WSGIScriptAlias / /var/wsgi/web2py/wsgihandler.py
And the result was the same.
Greetings
Michael
Am Samstag, 3. Oktober 2015 00:45:50 UTC+2 schrieb Niphlod:
>
> remove the double wsgiscriptalias.
> Or trade apache for nginx + uwsgi. Less headaches for everybody.
>
> On Friday, October 2, 2015 at 11:06:26 PM UTC+2, Michael Suelmann wrote:
>>
>> Hello,
>>
>> I'm running web2py 2.12.3-stable on Fedora 22 with apache-2.4.16,
>> python-2.7.10 and use the following config lines for WSGI:
>> WSGIDaemonProcess default display-name=%{GROUP}
>> WSGIProcessGroup default
>> WSGIScriptAlias /welcome /var/wsgi/web2py/wsgihandler.py/welcome
>> WSGIScriptAlias /examples /var/wsgi/web2py/wsgihandler.py/examples
>> ...
>>
>> The server is reachable via multiple host names, like example.com and
>> www.example.com. All should show the same content, so I use just one
>> <VirtualHost _default_:443> in the apache config.
>>
>> If I restart apache and go to https://example.com/welcome all is fine.
>> If I go to https://www.example.com/welcome after that I get the
>> following error:
>>
>> Traceback (most recent call last):
>> File "/var/wsgi/web2py/gluon/main.py", line 436, in wsgibase
>> session.connect(request, response)
>> File "/var/wsgi/web2py/gluon/globals.py", line 960, in connect
>> session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL)
>> File "/var/wsgi/web2py/gluon/storage.py", line 56, in <lambda>
>> __getnewargs__ = lambda self: getattr(dict,self).__getnewargs__(self)
>> TypeError: getattr(): attribute name must be string
>>
>>
>> After restarting apache again I can access https://www.example.com/welcome
>> fine but https://example.com/welcome will then cause the error. This
>> happens with all web2py apps.
>>
>> What can I do to get this to work except of redirecting all host names to
>> one version?
>>
>> Greetings
>> Michael
>>
>>
>>
--
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.