1. Build the Apache server (1). Download Httpd and Dependencies-Apr, Apr-util
httpd:http://httpd.apache.org/
Apr & apr-util:https://apr.apache.org/
(2). Compile Apr:
$./configure--prefix=/usr/local/makesudomakeinstall
Apr-util:
./configure--prefix=/usr/local/apr-util--with-apr=/usr/local/Aprmakesudomake Install
HTTPD:
$./configure--prefix=/usr/local/--with-apr=/usr/local/--with-apr-util=/usr/local/apr- --sysconfdir=/etc/--enable-modules=--enable-mpms-shared=makesudo makeinstall
2. Configuring the WSGI Framework
1. Download mod_wsgi.so module file: Http://code.google.com/p/modwsgi
2. Compile and install:
$./configure--with-apxs=/usr/local/apache2/bin/--with-python=/usr/bin/makesudo makeinstall
3. Configure the httpd.conf file:
LoadModule Wsgi_module Modules/mod_wsgi. so <ifmodule wsgi_module> /webapp/var/www/webpy-app/code.py/ /webapp/ static/var/www/webpy-app/static/ addtype text/html. PY <Directory/var/www/webpy-app/> allowoverride all Options Indexes followsymlinks execcgi Order deny,allow SetHandler wsgi-script allow from all < /directory></ifmodule>127.0. 1.1:
PS: Note The Request as follows:
<directory/> allowoverride None # Require all denied</Directory>
Apache + MOD_WSGI (Python) Deployment Webpy App