From 7de6168d008f0e2dff29eba7b7e06b0e9e38b51b Mon Sep 17 00:00:00 2001 From: shrkz1 Date: Thu, 13 Oct 2022 14:50:56 +0200 Subject: [PATCH] Added 2 variations of vhosts --- apache/vhost-with-ssl.conf | 24 ++++++++++++++++++++++++ apache/vhost.conf | 15 --------------- docker-compose.simple-install.yml | 2 +- 3 files changed, 25 insertions(+), 16 deletions(-) create mode 100644 apache/vhost-with-ssl.conf diff --git a/apache/vhost-with-ssl.conf b/apache/vhost-with-ssl.conf new file mode 100644 index 0000000..68cb245 --- /dev/null +++ b/apache/vhost-with-ssl.conf @@ -0,0 +1,24 @@ + + DocumentRoot "/var/www/eramba" + + AllowOverride all + Require all granted + + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined + + SSLCertificateFile /etc/ssl/certs/mycert.crt + SSLCertificateKeyFile /etc/ssl/private/mycert.key + + + + DocumentRoot "/var/www/eramba" + + AllowOverride all + Require all granted + + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined + + Redirect / https://localhost:8443/ + diff --git a/apache/vhost.conf b/apache/vhost.conf index 68cb245..e9ea008 100644 --- a/apache/vhost.conf +++ b/apache/vhost.conf @@ -1,16 +1,3 @@ - - DocumentRoot "/var/www/eramba" - - AllowOverride all - Require all granted - - ErrorLog ${APACHE_LOG_DIR}/error.log - CustomLog ${APACHE_LOG_DIR}/access.log combined - - SSLCertificateFile /etc/ssl/certs/mycert.crt - SSLCertificateKeyFile /etc/ssl/private/mycert.key - - DocumentRoot "/var/www/eramba" @@ -19,6 +6,4 @@ ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined - - Redirect / https://localhost:8443/ diff --git a/docker-compose.simple-install.yml b/docker-compose.simple-install.yml index ac9956f..9dee49d 100644 --- a/docker-compose.simple-install.yml +++ b/docker-compose.simple-install.yml @@ -27,7 +27,7 @@ services: - app:/var/www/eramba - ./apache/ssl/mycert.crt:/etc/ssl/certs/mycert.crt - ./apache/ssl/mycert.key:/etc/ssl/private/mycert.key - - ./apache/vhost.conf:/etc/apache2/sites-available/000-default.conf + - ./apache/vhost-with-ssl.conf:/etc/apache2/sites-available/000-default.conf env_file: - main.env links: