[redirects-web] Allow generating letsencrypt certs for clutter-project.org
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [redirects-web] Allow generating letsencrypt certs for clutter-project.org
- Date: Mon, 18 Jan 2021 15:24:50 +0000 (UTC)
commit 32e7694f8358b76c9cb8e2148ff4096775d64365
Author: Andrea Veri <averi redhat com>
Date: Mon Jan 18 16:24:34 2021 +0100
Allow generating letsencrypt certs for clutter-project.org
app_data/httpd-cfg/clutter-project.org.conf | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/app_data/httpd-cfg/clutter-project.org.conf b/app_data/httpd-cfg/clutter-project.org.conf
index f0cd182..2e50a00 100644
--- a/app_data/httpd-cfg/clutter-project.org.conf
+++ b/app_data/httpd-cfg/clutter-project.org.conf
@@ -1,6 +1,12 @@
<VirtualHost *:8080>
- ServerName clutter-project.org
- ServerAlias www.clutter-project.org
+ ServerName clutter-project.org
+ ServerAlias www.clutter-project.org
- RedirectPermanent / https://blogs.gnome.org/clutter
+ RewriteEngine On
+ RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/.*
+ RewriteRule ^(.*) https://blogs.gnome.org/clutter [R=301]
</VirtualHost>
+
+<LocationMatch "^/.well-known/acme-challenge">
+ RedirectMatch ^(.*) https://letsencrypt.gnome.org$1
+</LocationMatch>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]