our Apache configuration file is fairly simple. I will share it here.
<VirtualHost *:80>
ServerName
atom.myservername.com Redirect /
https://atom.myservername.com/</VirtualHost>
<VirtualHost *:443>
ServerName
atom.myservername.com ServerAdmin
webm...@myservername.com DocumentRoot "/var/www/atom"
SSLEngine On
SSLCertificateFile /etc/letsencrypt/live/
myservername.com/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/
myservername.com/privkey.pem SSLCertificateChainFile /etc/letsencrypt/live/
myservername.com/chain.pem # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
# AllowOverride ALL
RewriteEngine On
RewriteOptions inherit
ErrorLog ${APACHE_LOG_DIR}/atom_error.log
#CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# 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
<Directory "/var/www/atom">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>