Apache 000-default-le-ssl.conf

Below is the Apache VirtualHost configuration for htpps access to the www.livecode.world site.

<IfModule mod_ssl.c> <VirtualHost *:443> ServerName rest.livecode.world DocumentRoot /var/www/rest.livecode.world SSLCertificateFile /etc/letsencrypt/live/rest.livecode.world/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/rest.livecode.world/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf Action lc-script /cgi-bin/livecode-community-server AddHandler lc-script .lc SSLCertificateChainFile /etc/letsencrypt/live/rest.livecode.world/chain.pem </VirtualHost> <Directory /var/www/rest.livecode.world/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all SSLRequireSSL </Directory> # vim: syntax=apache ts=4 sw=4 sts=4 sr noet </IfModule>

Note that this file can be found at the following path:

/etc/apache2/sites-enabled/000-default-le-ssl.conf

The SSLRequireSSL directive is there to ensure that only HTTPS requests are accepted.