Hits :
2261
Web Server Gateway Interface –
wsgi[link1]
Apache[link2] –
mod_wsgi[link3]
Latest version 3.3
$ cd /usr/local/src/
$ wget -c https://modwsgi.googlecode.com/files/mod_wsgi-3.3.tar.gz
$ tar zxvf mod_wsgi-3.3.tar.gz
$ cd mod_wsgi-3.3
$ ./configure --with-python=/opt/Python-2.7.2/bin/python2.7
$ make
$ sudo -s
# make install
# vim /etc/httpd/conf/httpd.conf
# ebal, Fri Jan 20 13:54:25 EET 2012
LoadModule wsgi_module modules/mod_wsgi.so
WSGISocketPrefix /var/run/wsgi
<VirtualHost *:80>
ServerName bottleapp.ebalaskas.gr
DocumentRoot /www/bottleapp
LogLevel debug
ErrorLog logs/bottleapp-error.log
CustomLog logs/bottleapp-access.log combined
WSGIDaemonProcess bottleapp user=apache group=apache processes=1 threads=5
WSGIScriptAlias / /www/bottleapp/app.wsgi
<Directory /www/bottleapp>
WSGIProcessGroup bottleapp
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
Options +Indexes FollowSymlinks
</Directory>
</VirtualHost>
[link2] https://httpd.apache.org/
[link3] https://code.google.com/p/modwsgi/