From 1de8e9fa90629fe116e18a71f1b283fbf090ff5e Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 15 Mar 2020 17:21:00 -0500 Subject: [PATCH] websites/pyrocufflink.net: Add HTTP virtual host A name-based HTTP (not HTTPS) virtual host for *pyrocufflink.net* is necessary to ensure requests are handled properly, now that there is another HTTP virtual host (chmod777.sh) defined on the same server. --- .../pyrocufflink.net/templates/pyrocufflink.httpd.conf.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/websites/pyrocufflink.net/templates/pyrocufflink.httpd.conf.j2 b/roles/websites/pyrocufflink.net/templates/pyrocufflink.httpd.conf.j2 index 67c9401..a84edd4 100644 --- a/roles/websites/pyrocufflink.net/templates/pyrocufflink.httpd.conf.j2 +++ b/roles/websites/pyrocufflink.net/templates/pyrocufflink.httpd.conf.j2 @@ -1,5 +1,13 @@ # vim: set sw=4 ts=4 sts=4 et : + + ServerName pyrocufflink.net + + RewriteEngine On + RewriteRule ^/$ http://dustin.hatch.name/ [L] + RewriteRule (.*) https://%{SERVER_NAME}$1 [R=301,L] + + ServerName pyrocufflink.net Include conf.d/ssl.include