Skip to content

Commit

Permalink
Update domain.conf
Browse files Browse the repository at this point in the history
Changed placement of Listen directives, added a mod.ssl wrapper to Listen 443.

Signed-off-by: Max Barrett <maximilliangroup@gmail.com>
  • Loading branch information
MaximillianGroup authored Nov 5, 2024
1 parent 8cb1f68 commit cbf1496
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions domain.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,23 @@
# Author: MaximillianGroup (Max Barrett) <maximilliangroup@gmail.com>
# 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
<IfModule mod.ssl>
Listen 443
</IfModule>

# Added to mitigate CVE-2017-8295 vulnerability
UseCanonicalName On
Expand All @@ -18,12 +27,6 @@ UseCanonicalName On
# HTTP VirtualHost to redirect all traffic to HTTPS
# ----------------------------------
<VirtualHost *:80>
ServerAdmin support@maximilliangroup.us

# hide the server details
ServerSignature Off
ServerTokens Prod

ServerName domain.com
ServerAlias www.domain.com

Expand Down

0 comments on commit cbf1496

Please sign in to comment.