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.
This commit is contained in:
2023-01-09 13:06:56 -06:00
parent 1b7a8885b8
commit b1fa4fc8a7

View File

@@ -1,3 +1,11 @@
<VirtualHost _default_:80>
ServerName chmod777.sh
ServerAlias blog.chmod777.sh www.chmod777.sh
RewriteEngine On
RewriteRule (.*) https://%{SERVER_NAME}$1 [R=301,L]
</VirtualHost>
<VirtualHost _default_:443>
ServerName chmod777.sh
ServerAlias blog.chmod777.sh www.chmod777.sh