poc-prep/configure-http
2014-01-22 10:32:55 -08:00

17 lines
435 B
Bash
Executable File

#!/bin/bash
# Install and configure nginx web server and large test files.
# Make test files
mkdir /var/www/
head -c 100000000 /dev/zero > /var/www/100mb.bin
# Install and configure nginx
apt-get install nginx
rm /etc/nginx/sites-enabled/default
ln -s `pwd`/nginx.conf /etc/nginx/sites-enabled/poc
service nginx start
# Ensure port 80 is allowed from anywhere
cp 60_allow_http /etc/firewall.d/60_allow_http
service firewall restart