diff options
author | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-01-15 17:07:11 +0000 |
---|---|---|
committer | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-02-11 18:30:34 +0000 |
commit | 18cb44034a08903ed18dc8d4172d388085c436f4 (patch) | |
tree | 25df9c8218e29124d08312368a6905be5d7f73b5 /strata/apache-httpd-server | |
parent | f3a5ebc51f02f4024c0882bcae46d62f9fb33cb1 (diff) | |
download | definitions-18cb44034a08903ed18dc8d4172d388085c436f4.tar.gz |
Add configuration file to load mod_wsgi from apache and enable shared libraries
Diffstat (limited to 'strata/apache-httpd-server')
-rw-r--r-- | strata/apache-httpd-server/mod_wsgi.morph | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/strata/apache-httpd-server/mod_wsgi.morph b/strata/apache-httpd-server/mod_wsgi.morph index ef354a6c..48126787 100644 --- a/strata/apache-httpd-server/mod_wsgi.morph +++ b/strata/apache-httpd-server/mod_wsgi.morph @@ -3,8 +3,20 @@ kind: chunk configure-commands: - | ./configure --prefix="$PREFIX" \ + --enable-shared \ --with-apxs=/usr/bin/apxs build-commands: - make install-commands: - PREFIX="$PREFIX" DESTDIR="$DESTDIR" make install +post-install-commands: +- | + install -D -m 644 /proc/self/fd/0 <<'EOF' "$DESTDIR$PREFIX"/httpd/conf.d/wsgi.conf + # NOTE: mod_wsgi can not coexist in the same apache process as + # mod_wsgi_python3. Only load if mod_wsgi_python3 is not + # already loaded. + + <IfModule !wsgi_module> + LoadModule wsgi_module /usr/lib/httpd/modules/mod_wsgi.so + </IfModule> + EOF |