aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2025-05-13 20:39:25 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2025-05-13 20:54:31 +0200
commitd74b0487cdca3c37121f6ba519389173a77e274b (patch)
tree5041c2cbebe9f083c57f1d279fb0df0abbf19290
parent6a6f26c0864ce98bf9d5c7e26ac38e33eb8739d2 (diff)
downloadetc_apache2-d74b0487cdca3c37121f6ba519389173a77e274b.tar.gz
etc_apache2-d74b0487cdca3c37121f6ba519389173a77e274b.tar.bz2
etc_apache2-d74b0487cdca3c37121f6ba519389173a77e274b.zip
Add www.test.replicant.us.
The www.replicant.us php code uses the RSS from the blog. Because of that if we migrate to Haunt, we need to do some adaptations. This could enable to deploy a static version of www.replicant.us to do tests. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--sites-available/www.test.replicant.us-letsencrypt.conf8
-rw-r--r--sites-available/www.test.replicant.us.conf26
2 files changed, 34 insertions, 0 deletions
diff --git a/sites-available/www.test.replicant.us-letsencrypt.conf b/sites-available/www.test.replicant.us-letsencrypt.conf
new file mode 100644
index 0000000..7f291d0
--- /dev/null
+++ b/sites-available/www.test.replicant.us-letsencrypt.conf
@@ -0,0 +1,8 @@
+# This file is only meant to be used to get the very first letsencrypt
+# certificate, and before the final letsencrypt or apache
+# configuration are deployed.
+<VirtualHost *:80>
+ ServerName www.test.replicant.us
+ DocumentRoot /var/www/www.test.replicant.us
+</VirtualHost>
+
diff --git a/sites-available/www.test.replicant.us.conf b/sites-available/www.test.replicant.us.conf
new file mode 100644
index 0000000..f401a22
--- /dev/null
+++ b/sites-available/www.test.replicant.us.conf
@@ -0,0 +1,26 @@
+# Usage:
+# This virtual host is meant to be used to deploy a configuration file
+# for the email service that is currently using the autoconfig.replicant.us address
+<VirtualHost *:80>
+ ServerName www.test.replicant.us
+ RewriteEngine On
+ RewriteCond %{HTTPS} off
+ RewriteCond %{REMOTE_ADDR} !=127.0.0.1
+ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
+</VirtualHost>
+
+<IfModule mod_ssl.c>
+ <VirtualHost *:443>
+ ServerAdmin contact@replicant.us
+ ServerName www.test.replicant.us
+
+ DocumentRoot /var/www/www.test.replicant.us
+
+ Header always set Strict-Transport-Security "max-age=31536000;"
+
+ SSLEngine On
+ SSLCertificateFile /etc/letsencrypt/live/www.test.replicant.us/cert.pem
+ SSLCertificateChainFile /etc/letsencrypt/live/www.test.replicant.us/chain.pem
+ SSLCertificateKeyFile /etc/letsencrypt/live/www.test.replicant.us/privkey.pem
+ </VirtualHost>
+</IfModule>