From b1fa4fc8a7162ae46aaa6166cb63369425fc7a58 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 9 Jan 2023 13:06:56 -0600 Subject: [PATCH] r/web/chmod777.sh: Add HTTP redirect The HTTP->HTTPS redirect for chmod777.sh was only working by coincidence. It needs its own virtual host to ensure it works irrespective of how other websites are configured. --- roles/websites/chmod777.sh/files/chmod777.sh.httpd.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/websites/chmod777.sh/files/chmod777.sh.httpd.conf b/roles/websites/chmod777.sh/files/chmod777.sh.httpd.conf index 84f5dbb..30f74ec 100644 --- a/roles/websites/chmod777.sh/files/chmod777.sh.httpd.conf +++ b/roles/websites/chmod777.sh/files/chmod777.sh.httpd.conf @@ -1,3 +1,11 @@ + +ServerName chmod777.sh +ServerAlias blog.chmod777.sh www.chmod777.sh + +RewriteEngine On +RewriteRule (.*) https://%{SERVER_NAME}$1 [R=301,L] + + ServerName chmod777.sh ServerAlias blog.chmod777.sh www.chmod777.sh