diff mbox series

[qemu-web] container: silence httpd logs

Message ID 20231103072606.221620-1-pbonzini@redhat.com
State New
Headers show
Series [qemu-web] container: silence httpd logs | expand

Commit Message

Paolo Bonzini Nov. 3, 2023, 7:26 a.m. UTC
The httpd logs for qemu.org are huge and are exhausting the disk
space on the web server.  Silence them, they are of limited use
and also a possible privacy issue.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 container/conf.d/git.conf    | 2 ++
 container/conf.d/noname.conf | 2 ++
 container/conf.d/www.conf    | 2 ++
 3 files changed, 6 insertions(+)

Comments

Daniel P. Berrangé Nov. 3, 2023, 8:59 a.m. UTC | #1
On Fri, Nov 03, 2023 at 08:26:06AM +0100, Paolo Bonzini wrote:
> The httpd logs for qemu.org are huge and are exhausting the disk
> space on the web server.  Silence them, they are of limited use
> and also a possible privacy issue.
> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>  container/conf.d/git.conf    | 2 ++
>  container/conf.d/noname.conf | 2 ++
>  container/conf.d/www.conf    | 2 ++
>  3 files changed, 6 insertions(+)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>


With regards,
Daniel
diff mbox series

Patch

diff --git a/container/conf.d/git.conf b/container/conf.d/git.conf
index 13093c5..a3df4a7 100644
--- a/container/conf.d/git.conf
+++ b/container/conf.d/git.conf
@@ -2,6 +2,8 @@ 
     ServerName git.qemu.org
     ServerAlias git.qemu.org
 
+    CustomLog /dev/null common
+
     RewriteEngine On
 
     RewriteRule ^/(git/)?([^/?;]+)\.git(/?|/HEAD|/info/.*|/objects/.*|/git-(upload|receive)-pack)$ http://gitlab.com/qemu-project/$2$3 [R,L]
diff --git a/container/conf.d/noname.conf b/container/conf.d/noname.conf
index db17b95..9080c64 100644
--- a/container/conf.d/noname.conf
+++ b/container/conf.d/noname.conf
@@ -2,6 +2,8 @@ 
     ServerName qemu.org
     ServerAlias qemu.org
 
+    CustomLog /dev/null common
+
     RewriteEngine On
 
     RewriteRule ^(.*) https://www.qemu.org$0 [R=301]
diff --git a/container/conf.d/www.conf b/container/conf.d/www.conf
index 1904b5a..d9f6360 100644
--- a/container/conf.d/www.conf
+++ b/container/conf.d/www.conf
@@ -2,6 +2,8 @@ 
     ServerName www.qemu.org
     ServerAlias www.qemu.org
 
+    CustomLog /dev/null common
+
     RewriteEngine On
     RewriteRule ^/docs/master(/.*|$) https://qemu-project.gitlab.io/qemu$1 [NE,P,L]
     Header edit Location ^(http:|https:)?//qemu-project\.gitlab\.io/qemu/ https://www.qemu.org/docs/master/