Changes between Version 3 and Version 4 of Howtos/ndgOAuthWithModWSGI


Ignore:
Timestamp:
24/01/13 15:24:16 (5 years ago)
Author:
pjkersha
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Howtos/ndgOAuthWithModWSGI

    v3 v4  
    77 1. Install pre-requisites: 
    88{{{ 
    9 apt-get install python-dev  
     9apt-get install python-dev apache2-prefork-dev 
    1010}}} 
    1111 1. Download and build 
     
    1515cd mod_wsgi-3.4 
    1616./configure 
     17make 
     18sudo make install 
     19}}} 
     20 1. Make a load config file and enable 
     21{{{ 
     22cat > /etc/apache2/mods-available/wsgi.load << EOF 
     23LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so 
     24EOF 
     25}}} 
     26{{{ 
     27a2enmod wsgi 
    1728}}} 
    1829 
     
    133144}}} 
    134145 
     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}}}