* [PATCH] Include log_config module in apache.conf
@ 2009-03-11 3:23 Daniel Barkalow
2009-03-11 11:46 ` Johannes Schindelin
0 siblings, 1 reply; 8+ messages in thread
From: Daniel Barkalow @ 2009-03-11 3:23 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: git, Junio C Hamano
The log_config module is needed for at least some versions of apache to
support the LogFormat directive.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
---
Johannes, you added the LogFormat line without this; does the test still
work for you with this added, or do we need something clever to decide
whether the module needs to be loaded or needs to not be loaded?
t/lib-httpd/apache.conf | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/t/lib-httpd/apache.conf b/t/lib-httpd/apache.conf
index af6e5e1..a0d4077 100644
--- a/t/lib-httpd/apache.conf
+++ b/t/lib-httpd/apache.conf
@@ -4,6 +4,7 @@ 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
<IfDefine Darwin>
LoadModule log_config_module modules/mod_log_config.so
--
1.6.2.77.g8cc3f.dirty
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] Include log_config module in apache.conf
2009-03-11 3:23 [PATCH] Include log_config module in apache.conf Daniel Barkalow
@ 2009-03-11 11:46 ` Johannes Schindelin
2009-03-11 11:47 ` [PATCH v2] " Johannes Schindelin
2009-03-11 18:58 ` [PATCH] " Junio C Hamano
0 siblings, 2 replies; 8+ messages in thread
From: Johannes Schindelin @ 2009-03-11 11:46 UTC (permalink / raw)
To: Daniel Barkalow; +Cc: git, Junio C Hamano
Hi,
On Tue, 10 Mar 2009, Daniel Barkalow wrote:
> The log_config module is needed for at least some versions of apache to
> support the LogFormat directive.
>
> Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
> ---
> Johannes, you added the LogFormat line without this; does the test still
> work for you with this added, or do we need something clever to decide
> whether the module needs to be loaded or needs to not be loaded?
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 --
Ciao,
Dscho
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2] Include log_config module in apache.conf
2009-03-11 11:46 ` Johannes Schindelin
@ 2009-03-11 11:47 ` Johannes Schindelin
2009-03-11 18:58 ` [PATCH] " Junio C Hamano
1 sibling, 0 replies; 8+ messages in thread
From: Johannes Schindelin @ 2009-03-11 11:47 UTC (permalink / raw)
To: Daniel Barkalow; +Cc: git, Junio C Hamano
From: Daniel Barkalow <barkalow@iabervon.org>
The log_config module is needed for at least some versions of apache to
support the LogFormat directive.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
This one works.
t/lib-httpd/apache.conf | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/t/lib-httpd/apache.conf b/t/lib-httpd/apache.conf
index af6e5e1..f460e40 100644
--- a/t/lib-httpd/apache.conf
+++ b/t/lib-httpd/apache.conf
@@ -4,6 +4,9 @@ DocumentRoot www
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog access.log common
ErrorLog error.log
+<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
--
1.6.2.363.g9793e
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] Include log_config module in apache.conf
2009-03-11 11:46 ` Johannes Schindelin
2009-03-11 11:47 ` [PATCH v2] " Johannes Schindelin
@ 2009-03-11 18:58 ` Junio C Hamano
2009-03-11 19:33 ` Brian Gernhardt
2009-03-11 19:45 ` Johannes Schindelin
1 sibling, 2 replies; 8+ messages in thread
From: Junio C Hamano @ 2009-03-11 18:58 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: Daniel Barkalow, git
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 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
--
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] Include log_config module in apache.conf
2009-03-11 18:58 ` [PATCH] " Junio C Hamano
@ 2009-03-11 19:33 ` Brian Gernhardt
2009-03-11 20:13 ` Junio C Hamano
2009-03-11 19:45 ` Johannes Schindelin
1 sibling, 1 reply; 8+ messages in thread
From: Brian Gernhardt @ 2009-03-11 19:33 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Johannes Schindelin, Daniel Barkalow, git
On Mar 11, 2009, at 2:58 PM, Junio C Hamano wrote:
> 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
Isn't this last line redundant now?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Include log_config module in apache.conf
2009-03-11 19:33 ` Brian Gernhardt
@ 2009-03-11 20:13 ` Junio C Hamano
2009-03-11 22:43 ` Jay Soffian
0 siblings, 1 reply; 8+ messages in thread
From: Junio C Hamano @ 2009-03-11 20:13 UTC (permalink / raw)
To: Brian Gernhardt; +Cc: Johannes Schindelin, Daniel Barkalow, git
Brian Gernhardt <benji@silverinsanity.com> writes:
> On Mar 11, 2009, at 2:58 PM, Junio C Hamano wrote:
>
>> 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
>
> Isn't this last line redundant now?
<IfDefine Darwin>
LoadModule log_config_module modules/mod_log_config.so
LockFile accept.lock
PidFile httpd.pid
</IfDefine>
I think we can lose the first among these three lines safely, but I wonder
if we can get rid of the Darwin specific part altogether.
-- >8 --
Subject: http tests: Darwin is not that special
We have PidFile definition in the file already, and we have added
necessary LoadModule for log_config_module recently.
This patch will end up giving LockFile to everybody not just limited to
Darwin, but why not?
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
t/lib-httpd/apache.conf | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/t/lib-httpd/apache.conf b/t/lib-httpd/apache.conf
index f460e40..6533c2d 100644
--- a/t/lib-httpd/apache.conf
+++ b/t/lib-httpd/apache.conf
@@ -1,5 +1,6 @@
ServerName dummy
+LockFile accept.lock
PidFile httpd.pid
DocumentRoot www
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog access.log common
@@ -8,12 +9,6 @@ ErrorLog error.log
LoadModule log_config_module modules/mod_log_config.so
</IfModule>
-<IfDefine Darwin>
- LoadModule log_config_module modules/mod_log_config.so
- LockFile accept.lock
- PidFile httpd.pid
-</IfDefine>
-
<IfDefine SSL>
LoadModule ssl_module modules/mod_ssl.so
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] Include log_config module in apache.conf
2009-03-11 20:13 ` Junio C Hamano
@ 2009-03-11 22:43 ` Jay Soffian
0 siblings, 0 replies; 8+ messages in thread
From: Jay Soffian @ 2009-03-11 22:43 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Brian Gernhardt, Johannes Schindelin, Daniel Barkalow, git
On Wed, Mar 11, 2009 at 4:13 PM, Junio C Hamano <gitster@pobox.com> wrote:
> We have PidFile definition in the file already, and we have added
> necessary LoadModule for log_config_module recently.
>
> This patch will end up giving LockFile to everybody not just limited to
> Darwin, but why not?
In that case, the -DDarwin added to lib-httpd.sh by commit 69707d61 is
no longer needed.
j.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Include log_config module in apache.conf
2009-03-11 18:58 ` [PATCH] " Junio C Hamano
2009-03-11 19:33 ` Brian Gernhardt
@ 2009-03-11 19:45 ` Johannes Schindelin
1 sibling, 0 replies; 8+ messages in thread
From: Johannes Schindelin @ 2009-03-11 19:45 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Daniel Barkalow, git
Hi,
On Wed, 11 Mar 2009, Junio C Hamano wrote:
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
>
> > 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.
Thanks...
Ciao,
Dscho
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-03-11 22:44 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-11 3:23 [PATCH] Include log_config module in apache.conf Daniel Barkalow
2009-03-11 11:46 ` Johannes Schindelin
2009-03-11 11:47 ` [PATCH v2] " Johannes Schindelin
2009-03-11 18:58 ` [PATCH] " Junio C Hamano
2009-03-11 19:33 ` Brian Gernhardt
2009-03-11 20:13 ` Junio C Hamano
2009-03-11 22:43 ` Jay Soffian
2009-03-11 19:45 ` Johannes Schindelin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox