From cbf149621a3f2bdd3a6de55dc7e1f7870dfa0278 Mon Sep 17 00:00:00 2001 From: Max Barrett Date: Mon, 4 Nov 2024 21:40:21 -0800 Subject: [PATCH] Update domain.conf Changed placement of Listen directives, added a mod.ssl wrapper to Listen 443. Signed-off-by: Max Barrett --- domain.conf | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/domain.conf b/domain.conf index 10f6359..7224c86 100644 --- a/domain.conf +++ b/domain.conf @@ -2,14 +2,23 @@ # Author: MaximillianGroup (Max Barrett) # Version 1.0.0 # WordPress Friendly, Cloudflare Origin Certificates, Let's Encrypt, Strong SSL Security +ServerAdmin support@maximilliangroup.us + +# hide the server details +ServerSignature Off +ServerTokens Prod # Load necessary modules +# These may already be included in a server .conf LoadModule ssl_module modules/mod_ssl.so LoadModule rewrite_module modules/mod_rewrite.so # Listen on HTTP and HTTPS ports +# These may already be included in a server .conf Listen 80 -Listen 443 + + Listen 443 + # Added to mitigate CVE-2017-8295 vulnerability UseCanonicalName On @@ -18,12 +27,6 @@ UseCanonicalName On # HTTP VirtualHost to redirect all traffic to HTTPS # ---------------------------------- - ServerAdmin support@maximilliangroup.us - - # hide the server details - ServerSignature Off - ServerTokens Prod - ServerName domain.com ServerAlias www.domain.com