summaryrefslogtreecommitdiff
path: root/strata/apache-httpd-server/mod_wsgi.morph
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-02-19 15:05:52 +0000
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-02-19 15:05:52 +0000
commit7aa8bbea09b6a1b6413e8fd4892df5a27a8d7232 (patch)
tree70c441c58bbf05a8744745a1a8dea017f6074c1d /strata/apache-httpd-server/mod_wsgi.morph
parentd2b4ebbbc86bf2ee34ec47aab69839c1a32bb089 (diff)
parent880f21cfa9129eec903f0aa07f15eb5a457125b0 (diff)
downloaddefinitions-baserock/sam/15.08-release.tar.gz
Merge branch 'baserock/franred/add-apache-httpd-stratum-v3'baserock/sam/15.08-release
Reviewed-by: Pedro Alvarez <pedro.alvarez@codethink.co.uk> Reviewed-by: Richard Maw <richard.maw@codethink.co.uk>
Diffstat (limited to 'strata/apache-httpd-server/mod_wsgi.morph')
-rw-r--r--strata/apache-httpd-server/mod_wsgi.morph18
1 files changed, 18 insertions, 0 deletions
diff --git a/strata/apache-httpd-server/mod_wsgi.morph b/strata/apache-httpd-server/mod_wsgi.morph
new file mode 100644
index 00000000..86004ad3
--- /dev/null
+++ b/strata/apache-httpd-server/mod_wsgi.morph
@@ -0,0 +1,18 @@
+name: mod_wsgi
+kind: chunk
+build-system: autotools
+configure-commands:
+- |
+ ./configure --prefix="$PREFIX" \
+ --with-apxs=/usr/bin/apxs
+post-install-commands:
+- |
+ install -D -m 644 /proc/self/fd/0 <<'EOF' "$DESTDIR"/etc/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