-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
51 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
language: c | ||
|
||
sudo: required | ||
dist: trusty | ||
|
||
matrix: | ||
include: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
#!/bin/bash | ||
|
||
sudo apt-get update -qq | ||
|
||
if [ "${APACHE_VERSION}" = "2.4.x" ]; then | ||
sudo apt-get install -qq software-properties-common python-software-properties | ||
sudo apt-add-repository -y ppa:ondrej/apache2 | ||
sudo apt-get update -qq | ||
sudo apt-get install -qq apache2 apache2-dev | ||
else | ||
sudo tee -a /etc/apt/sources.list <<EOF | ||
deb http://archive.ubuntu.com/ubuntu precise main restricted universe | ||
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted universe | ||
deb http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse | ||
EOF | ||
sudo apt-get update -qq | ||
apache2_version=$(apt-cache showpkg apache2 | grep 'Reverse Provides:' -C 1 | tail -1 | awk '{print $2}') | ||
sudo apt-get install -qq --force-yes apache2-mpm-prefork=${apache2_version} apache2-prefork-dev=${apache2_version} apache2.2-bin=${apache2_version} apache2.2-common=${apache2_version} | ||
fi | ||
|
||
sudo apt-get install -qq apache2 apache2-dev automake libtool autotools-dev make curl | ||
sudo apt-get install -qq automake libtool autotools-dev make curl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# LoadModule brotli_module modules/mod_brotli.so | ||
LogLevel debug | ||
ErrorLog "/var/log/apache2/brotli.log" | ||
|
||
<VirtualHost *:80> | ||
DocumentRoot /var/www/html | ||
<Directory /var/www/html> | ||
Options FollowSymLinks | ||
AllowOverride None | ||
Order allow,deny | ||
allow from all | ||
</Directory> | ||
|
||
<Directory /var/www/html/br1> | ||
AddOutputFilterByType BROTLI text/html | ||
</Directory> | ||
|
||
<Directory /var/www/html/br2> | ||
SetOutputFilter BROTLI | ||
SetEnvIfNoCase Request_URI \.htm$ no-br | ||
</Directory> | ||
|
||
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.