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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user