jbartus / fastly-magento2-demo

fsly-demo
2 stars 2 forks source link

TLS this up #14

Closed jbartus closed 1 year ago

jbartus commented 1 year ago

https://github.com/jbartus/fsly-demo/blob/0044a03d6aae01fbcd889d6b29aeeb9dafe480cd/main.tf#L48

tf

+    port                  = 443
+    use_ssl               = "true"
+    ssl_check_cert        = "false"

shell

-# fix the https redirect loop
-echo 'SetEnvIf HTTPS "on" HTTPS="on"' >> /etc/apache2/sites-enabled/000-default.conf
+# Enable SSL
+a2enmod ssl
+a2ensite default-ssl
+
+sed -i "s;DocumentRoot /var/www/html;DocumentRoot /var/www/magento;g" /etc/apache2/sites-enabled/default-ssl.conf