Changes between Version 3 and Version 4 of Howtos/ndgOAuthWithModWSGI
- Timestamp:
- 24/01/13 15:24:16 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Howtos/ndgOAuthWithModWSGI
v3 v4 7 7 1. Install pre-requisites: 8 8 {{{ 9 apt-get install python-dev 9 apt-get install python-dev apache2-prefork-dev 10 10 }}} 11 11 1. Download and build … … 15 15 cd mod_wsgi-3.4 16 16 ./configure 17 make 18 sudo make install 19 }}} 20 1. Make a load config file and enable 21 {{{ 22 cat > /etc/apache2/mods-available/wsgi.load << EOF 23 LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so 24 EOF 25 }}} 26 {{{ 27 a2enmod wsgi 17 28 }}} 18 29 … … 133 144 }}} 134 145 146 == Apache config WSGI Directives == 147 1. Prerequisites: working config with SSL enabled 148 1. Edit `/etc/apache2/sites-available/default-ssl` adding: 149 {{{ 150 <Directory /var/www/wsgi-scripts> 151 Order allow,deny 152 Allow from all 153 </Directory> 154 155 WSGIDaemonProcess contrail processes=2 threads=15 156 WSGIProcessGroup contrail 157 WSGIScriptAlias /oauth-client /var/www/wsgi-scripts/oauth-client.wsgi 158 WSGIScriptAlias /oauth-server /var/www/wsgi-scripts/oauth-server.wsgi 159 }}}