ServerName darien.nuestrared.org ServerAdmin info@tupale.co DocumentRoot /var/www/html RewriteEngine On RewriteCond %{HTTP_HOST} ^darien\.nuestrared.org [NC,OR] RewriteRule ^/$ /e1 [R] Options FollowSymLinks AllowOverride All Options FollowSymLinks MultiViews AllowOverride All Require all granted ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined # RewriteEngine On # RewriteCond %{HTTPS} off # RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} SSLCertificateFile /etc/letsencrypt/darien.crt SSLCertificateKeyFile /etc/letsencrypt/myserver.key Include /etc/letsencrypt/options-ssl-apache.conf # ErrorDocument 404 /404.php RedirectMatch 404 ^/404.php$