summaryrefslogtreecommitdiff
path: root/strata/apache-httpd-server/mod_wsgi.morph
blob: 481267873da01c962f7a0281be1fd8647e0f04e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: mod_wsgi
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