My way configure apche24 with python3.4.3 modwsgi . I don't know what
happend then , but now it's working.
i read the mod_wsgi 4.4.11 , and but not successful.
i i'm using mod_wsgi3.5.
But now i try to test wsgi 4.4.11 on freebsd.
this is my configure base on the way to configure mod_wsgi 3.5.
LoadModule wsgi_module
/usr/local/lib/python3.4/site-packages/mod_wsgi-4.4.11-py3.4-freebsd-10.1-RELEASE-amd64.egg/mod_wsgi/server/mod_wsgi-py34.so
WSGIDaemonProcess localhost processes=2 threads=15 display-name=%{GROUP}
WSGIProcessGroup localhost
WSGIScriptAlias /wsgi-scripts/ /usr/local/www/apache24/wsgi-scripts/
Alias /wsgi-scripts/ /usr/local/www/apache24/wsgi-scripts/
<Directory /usr/local/www/apache24/wsgi-scripts/>
Options ExecCGI MultiViews
MultiviewsMatch Handlers
#Vì mình muốn thêm trong folder chạy được cả wsgi và cgi nên mình để như
thế này
AddHandler cgi-script .cgi .py
AddHandler wsgi-script .wsgi .py
Order allow,deny
Allow from all
</Directory>
file helloword.py : http://localhost/wsgi-scripts/hello.py ..
def application(environ, start_response):
status = '200 OK'
output = b'Hello World!'
response_headers = [('Content-type', 'text/plain'),
('Content-Length', str(len(output)))]
start_response(status, response_headers)
return [output]
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.