From 880f21cfa9129eec903f0aa07f15eb5a457125b0 Mon Sep 17 00:00:00 2001 From: Francisco Redondo Marchena Date: Thu, 12 Feb 2015 13:02:00 +0000 Subject: Add apache httpd server and mod_wsgi module Add apache-httpd server and mod_wsgi which is a module to host any python application with python wsgi inteface. NOTE: apache-httpd server need to configure an user and group to run this can not be configured in this patch because some bug when changing owners of files and directories in system-integration commands. See more information on httpd-server.morph chunk --- strata/apache-httpd-server/mod_wsgi.morph | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 strata/apache-httpd-server/mod_wsgi.morph (limited to 'strata/apache-httpd-server/mod_wsgi.morph') 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. + + + LoadModule wsgi_module /usr/lib/httpd/modules/mod_wsgi.so + + EOF -- cgit v1.2.1