-<IfModule mod_ssl.c>
-<VirtualHost *:443>
+<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
-SSLCertificateFile /etc/letsencrypt/live/shopserver0p.fsf.org/cert.pem
-SSLCertificateKeyFile /etc/letsencrypt/live/shopserver0p.fsf.org/privkey.pem
-Include /etc/letsencrypt/options-ssl-apache.conf
-ServerName shop.fsf.org
-ServerAlias store.fsf.org
-ServerAlias shopserver0p.fsf.org
-SSLCertificateChainFile /etc/letsencrypt/live/shopserver0p.fsf.org/chain.pem
+ # Redirect HTTP connections to HTTPS
+ <IfModule mod_rewrite.c>
+ RewriteEngine On
+ RewriteCond %{HTTPS} off
+ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
+ </IfModule>
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
-</IfModule>