diff options
author | Jonas Smedegaard <dr@jones.dk> | 2020-10-11 19:25:44 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2020-10-11 19:29:07 +0200 |
commit | 43473d2f9baf18dde0cef951e77a4f8ef62a979b (patch) | |
tree | 29072d7e4b2ca8ceedbd5e9fc6433cbf8e3f45be | |
parent | 824a5cf9831d0ee8a8f6123c64fab3a9deadea86 (diff) |
fix load default https site _after_ http site (otherwise all http sites will be TLS encrypted)
-rw-r--r-- | apache2/sites-available/0_default.conf | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apache2/sites-available/0_default.conf b/apache2/sites-available/0_default.conf index ce390fb..2757fb9 100644 --- a/apache2/sites-available/0_default.conf +++ b/apache2/sites-available/0_default.conf @@ -1,19 +1,19 @@ -<VirtualHost *:443> +<VirtualHost *:80> ServerName wrong.example.com + ServerAlias wrong ServerAdmin webmaster@example.com DocumentRoot /home/webmaster/public_websites/wrong.example.com - Include conf.d/local-ssl.conf - ErrorLog ${APACHE_LOG_DIR}/wrong.example.com-error.log CustomLog ${APACHE_LOG_DIR}/wrong.example.com-access.log combined </VirtualHost> -<VirtualHost *:80> +<VirtualHost *:443> ServerName wrong.example.com - ServerAlias wrong ServerAdmin webmaster@example.com DocumentRoot /home/webmaster/public_websites/wrong.example.com + Include conf.d/local-ssl.conf + ErrorLog ${APACHE_LOG_DIR}/wrong.example.com-error.log CustomLog ${APACHE_LOG_DIR}/wrong.example.com-access.log combined </VirtualHost> |