Sto provando ad installare Python con WSGI per una particolare directory su Apache, ma sto ottenendo il seguente errore:Impostazione Python con WSGI su Apache per una directory
mod_wsgi (pid=3857): Target WSGI script '/var/www/test/test.py' does not contain WSGI application 'application'.
mio test.py contiene:
print 'Hello, World!'
E il mio wsgi.conf contiene:
LoadModule wsgi_module modules/mod_wsgi.so
WSGIPythonHome /usr/local/bin/python2.7
Alias /test/ /var/www/test/test.py
<Directory /var/www/test>
SetHandler wsgi-script
Options ExecCGI
Order deny,allow
Allow from all
</Directory>
in cima a tutto questo, abbastanza interessante, il browser web restituisce un errore "404 non trovato" ma per fortuna error_log è un po 'più illuminante.
Cosa sto sbagliando?
Grazie! Ha senso. – hanleyhansen
Nomefile app WSGICallableObject – arivero