From 4c1a7bd89e146536e9afe62c27ab0bc65538d111 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 11 Jun 2020 07:12:52 -0500 Subject: genenetwork1: default to httpd-2.2 --- gn/services/genenetwork.scm | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'gn/services') diff --git a/gn/services/genenetwork.scm b/gn/services/genenetwork.scm index 1998603..ac7ead4 100644 --- a/gn/services/genenetwork.scm +++ b/gn/services/genenetwork.scm @@ -12,7 +12,7 @@ "/lib/python2.4/site-packages") (define %mod-python-path - (file-append httpd-mod-python-24 %python-path)) + (file-append httpd22-mod-python-24 %python-path)) (define %default-httpd22-modules (map (match-lambda @@ -93,19 +93,27 @@ (services (list (service httpd-service-type (httpd-configuration - (package httpd-mod-python-24) ; Must be this package! + (package httpd22-mod-python-24) ; Must be httpd-2.2? (config (httpd-config-file (server-name "www.genenetwork.org") + (server-root httpd22-mod-python-24) ; Defaults to httpd, must be combo package. + (user "nobody") + (group "root") + (pid-file "/tmp/httpd-genenetwork1") + (error-log "/tmp/httpd-genenetwork1-error-log") (document-root (file-append genenetwork1 "/web")) (listen '("8042")) (modules (cons* (httpd-module (name "python_module") (file "modules/mod_python.so")) - %default-httpd-modules)) + %default-httpd22-modules)) (extra-config (list "\ TypesConfig etc/httpd/mime.types +#for apache-2.2, ignored by apache-2.4 +DefaultType application/octet-stream +# Should PythonPath just be genenetwork1/web/webqtl? PythonPath \"sys.path+['" (file-append python-2.4 "/lib/python2.4") "', '" %mod-python-path "', '" (file-append genenetwork1 "/web/webqtl") "']\" AddHandler mod_python .py -- cgit v1.2.3