git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Include log_config module in apache.conf

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 11, 2009, 18:58 UTC
Message-ID
<7vab7r6g59.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<alpine.DEB.1.00.0903111240150.10279@pacific.mpi-cbg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 7 quoted lines
> Sorry, no:
>
> -- snip --
> apache2: Syntax error on line 7 of 
> /home/schindelin/git/t/lib-httpd/apache.conf: module log_config_module is 
> built-in and can't be loaded
> -- snap --
Sorry and thanks---I'll apply an interdiff and credit it to you.
-- >8 --
From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Date: Wed, 11 Mar 2009 12:47:06 +0100 (CET)
Subject: [PATCH] test: do not LoadModule log_config_module unconditionally

LoadModule directive for log_config_module will not work if the module is built-in.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
 t/lib-httpd/apache.conf |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/t/lib-httpd/apache.conf b/t/lib-httpd/apache.conf
index a0d4077..f460e40 100644
--- a/t/lib-httpd/apache.conf
+++ b/t/lib-httpd/apache.conf
@@ -4,7 +4,9 @@ DocumentRoot www
 LogFormat "%h %l %u %t \"%r\" %>s %b" common
 CustomLog access.log common
 ErrorLog error.log
-LoadModule log_config_module modules/mod_log_config.so
+<IfModule !mod_log_config.c>
+	LoadModule log_config_module modules/mod_log_config.so
+</IfModule>
 
 <IfDefine Darwin>
 	LoadModule log_config_module modules/mod_log_config.so
Previous: Johannes SchindelinNext: Brian Gernhardt
Message 4 of 8 in “Include log_config module in apache.conf”
  1. Include log_config module in apache.confDaniel Barkalow, Mar 11, 2009
  2. Johannes SchindelinMar 11, 2009
  3. Include log_config module in apache.confJohannes Schindelin, Mar 11, 2009
  4. Junio C HamanoMar 11, 2009
  5. Brian GernhardtMar 11, 2009
  6. Junio C HamanoMar 11, 2009
  7. Jay SoffianMar 11, 2009
  8. Johannes SchindelinMar 11, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.