GNU bug report logs -
#29741
[PATCH] gnu: services: web: Add service for apache-httpd.
Previous Next
Reported by: Christopher Baines <mail <at> cbaines.net>
Date: Sat, 16 Dec 2017 20:13:01 UTC
Severity: normal
Tags: patch
Done: Christopher Baines <mail <at> cbaines.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#29741: [PATCH] gnu: services: web: Add service for apache-httpd.
which was filed against the guix-patches package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 29741 <at> debbugs.gnu.org.
--
29741: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=29741
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
[Message part 3 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:
> Hi Chris!
>
> Sorry for the delay.
>
> Christopher Baines <mail <at> cbaines.net> skribis:
>
>> * gnu/services/web.scm (<httpd-module>,
>> <httpd-config-file>, <httpd-virtualhost>
>> <httpd-configuration>): New record types.
>> (%default-httpd-modules, %httpd-accounts,
>> httpd-service-type): New variables.
>> (httpd-shepherd-services, httpd-activation,
>> httpd-process-extensions): New procedures.
>> * gnu/tests/web.scm (run-httpd-test): New procedure.
>> (%httpd-os, %tests-httpd): New variables.
>> * doc/guix.texi (Web Services): Document the Apache HTTP Server.
>
> [...]
>
>> +The @code{(gnu services web)} module provides the Apache HTTP Server,
>> +the nginx web server, and also a fastcgi wrapper daemon.
>> +
>> +@subsubheading Apache HTTP Server
>> +
>> +@deffn {Scheme Variable} httpd-service-type
>> +Service type for the @uref{https://httpd.apache.org/,Apache HTTP}
>> +server. The value for this service type is a @code{https-configuration}
> ^
> Maybe add “(@dfn{httpd})”.
>
> Apart from this super-nitpicky comment, this LGTM! :-)
Great, I've made that change and pushed. Thanks for reviewing Ludo :)
[signature.asc (application/pgp-signature, inline)]
[Message part 5 (message/rfc822, inline)]
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(-)
This bug report was last modified 7 years and 213 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.