From 6eda26df072cffb32861a05114abafc9b065a915 Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Tue, 31 Oct 2017 09:21:43 -0500 Subject: [PATCH] Modifies Apache vhost definition to use single quotes Per #395, usage of double-quotes attempts to expand the string `${APACHE_LOG_DIR}` within the vhost definition. Since that value may or may not be set, and, if set, may not be correct for the vagrant image, single quotes must be used to prevent expansion. Tested and verified. --- Vagrantfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index a58fc61005..a0fbe51a51 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -9,7 +9,7 @@ apt-get update apt-get install -y apache2 git curl php7.0 php7.0-bcmath php7.0-bz2 php7.0-cli php7.0-curl php7.0-intl php7.0-json php7.0-mbstring php7.0-opcache php7.0-soap php7.0-sqlite3 php7.0-xml php7.0-xsl php7.0-zip libapache2-mod-php7.0 # Configure Apache -echo " +echo ' DocumentRoot /var/www/public AllowEncodedSlashes On @@ -23,7 +23,7 @@ echo " ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined -" > /etc/apache2/sites-available/000-default.conf +' > /etc/apache2/sites-available/000-default.conf a2enmod rewrite service apache2 restart