From 18f9f154fb5b5d44333ee9751665e5766c0982f6 Mon Sep 17 00:00:00 2001
From: Julio <gugli100@gmail.com>
Date: Thu, 19 Dec 2019 15:05:37 +0100
Subject: [PATCH] Travis fix host

---
 .travis.yml                  | 1 -
 tests/travis/setup-apache.sh | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index ff1fef6b21..af66385bf5 100755
--- a/.travis.yml
+++ b/.travis.yml
@@ -87,7 +87,6 @@ script:
   - ../../vendor/behat/behat/bin/behat features/course.feature
   - ../../vendor/behat/behat/bin/behat features/createUser.feature
   - sudo apachectl -S
-  - sudo cat /var/log/apache2/error.log
 
 after_failure:
   - sudo cat /var/log/apache2/error.log
diff --git a/tests/travis/setup-apache.sh b/tests/travis/setup-apache.sh
index 39648fc7f5..daba3561fa 100644
--- a/tests/travis/setup-apache.sh
+++ b/tests/travis/setup-apache.sh
@@ -7,6 +7,7 @@ sudo a2enmod rewrite actions fastcgi alias
 # Use default config
 sudo cp -f tests/travis/travis-apache /etc/apache2/sites-available/000-default.conf
 sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/000-default.conf
+sudo sed -e "s?%VHOST_URL%?$(pwd)?g" --in-place /etc/apache2/sites-available/000-default.conf
 sudo chmod 777 -R $HOME
 
 cat /etc/apache2/sites-available/000-default.conf