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.btop
parent
1b7a8885b8
commit
b1fa4fc8a7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue