LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so ServerName localhost DocumentRoot /var/www/html Options Indexes FollowSymLinks Includes execCGI AllowOverride All Require all granted allow from all ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined DocumentRoot "/var/www/html" ServerName localhost:443 ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined SSLEngine on SSLCertificateFile "/etc/apache2/sites-available/ssl/localhost.crt" SSLCertificateKeyFile "/etc/apache2/sites-available/ssl/localhost.key" SSLOptions +StdEnvVars Options Indexes FollowSymLinks Includes execCGI AllowOverride All Require all granted