From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQIpY-0005N0-6E for guix-patches@gnu.org; Sat, 16 Dec 2017 15:13:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQIpT-0002Zf-80 for guix-patches@gnu.org; Sat, 16 Dec 2017 15:13:08 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:57239) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eQIpT-0002Z0-3i for guix-patches@gnu.org; Sat, 16 Dec 2017 15:13:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eQIpS-000228-Mp for guix-patches@gnu.org; Sat, 16 Dec 2017 15:13:02 -0500 Subject: [bug#29741] [PATCH] gnu: services: web: Add service for apache-httpd. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQIp2-0005Ig-PH for guix-patches@gnu.org; Sat, 16 Dec 2017 15:12:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQIox-0001pe-Px for guix-patches@gnu.org; Sat, 16 Dec 2017 15:12:36 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:41192 helo=mira.cbaines.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQIox-0001og-JR for guix-patches@gnu.org; Sat, 16 Dec 2017 15:12:31 -0500 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id BE08713E944 for ; Sat, 16 Dec 2017 20:12:30 +0000 (GMT) Received: from phact (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id e9a132c2 for ; Sat, 16 Dec 2017 20:12:30 +0000 (UTC) From: Christopher Baines Date: Sat, 16 Dec 2017 20:12:30 +0000 Message-ID: <87efnuph3l.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 29741@debbugs.gnu.org I've got as far as writing the service type, and a simple system test. I've also managed to deploy this with mod_wsgi (which isn't packaged for Guix yet), which involved extending the service and adding some virtualhosts. There isn't any documentation yet, and I'm not very sure of the way the configuration is organised. In particular: - There is a record type for modules, which are handled specifically handled in the configuration file. I guess this might be helpful if you want to remove modules, but I'm not sure if this is useful. - There is some default extra configuration, which is related to the mime_module, which makes me wonder if there should be something relating these two things. Christopher Baines (2): gnu: tests: web: Generalise the test data for the nginx test. gnu: services: web: Add service for apache-httpd. gnu/services/web.scm | 227 ++++++++++++++++++++++++++++++++++++++++++++++++++- gnu/tests/web.scm | 90 ++++++++++++++++++-- 2 files changed, 311 insertions(+), 6 deletions(-)