From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Subject: [qemu-web PATCH] container: silence httpd logs
Date: Fri, 3 Nov 2023 08:26:06 +0100 [thread overview]
Message-ID: <20231103072606.221620-1-pbonzini@redhat.com> (raw)
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(+)
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/
--
2.41.0
next reply other threads:[~2023-11-03 7:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-03 7:26 Paolo Bonzini [this message]
2023-11-03 8:59 ` [qemu-web PATCH] container: silence httpd logs Daniel P. Berrangé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231103072606.221620-1-pbonzini@redhat.com \
--to=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).