Skip to content
This repository was archived by the owner on Jan 1, 2020. It is now read-only.

Commit 6eda26d

Browse files
committed
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.
1 parent e233481 commit 6eda26d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Vagrantfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ apt-get update
99
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
1010
1111
# Configure Apache
12-
echo "<VirtualHost *:80>
12+
echo '<VirtualHost *:80>
1313
DocumentRoot /var/www/public
1414
AllowEncodedSlashes On
1515
@@ -23,7 +23,7 @@ echo "<VirtualHost *:80>
2323
2424
ErrorLog ${APACHE_LOG_DIR}/error.log
2525
CustomLog ${APACHE_LOG_DIR}/access.log combined
26-
</VirtualHost>" > /etc/apache2/sites-available/000-default.conf
26+
</VirtualHost>' > /etc/apache2/sites-available/000-default.conf
2727
a2enmod rewrite
2828
service apache2 restart
2929

0 commit comments

Comments
 (0)