Sha256: 0b68c9b9c271752c08620c1fb0efadf383e4026f6922fc7fb5f3daa5ad669b34

Contents?: true

Size: 839 Bytes

Versions: 792

Compression:

Stored size: 839 Bytes

Contents

#!/bin/bash --login
source /etc/profile.d/globals.sh

if [[ $PWN_ROOT == '' ]]; then
  if [[ ! -d '/pwn' ]]; then
    pwn_root=$(pwd)
  else
    pwn_root='/pwn'
  fi
else
  pwn_root="${PWN_ROOT}"
fi

pwn_provider=`echo $PWN_PROVIDER`

$screen_cmd "${apt} install -y apache2 ${assess_update_errors}"
$screen_cmd "a2enmod proxy ${assess_update_errors}"
$screen_cmd "a2enmod proxy_http ${assess_update_errors}"
$screen_cmd "a2enmod rewrite ${assess_update_errors}"
$screen_cmd "a2enmod ssl ${assess_update_errors}"
$screen_cmd "a2enmod headers ${assess_update_errors}"
# Disable Version Headers
$screen_cmd "echo -e \"ServerSignature Off\nServerTokens Prod\n\" >> /etc/apache2/apache2.conf ${assess_update_errors}"
$screen_cmd "cp ${pwn_root}/etc/userland/${pwn_provider}/apache2/*.conf /etc/apache2/sites-available/ ${assess_update_errors}"

Version data entries

792 entries across 792 versions & 1 rubygems

Version Path
pwn-0.5.214 packer/provisioners/apache2.sh
pwn-0.5.213 packer/provisioners/apache2.sh
pwn-0.5.212 packer/provisioners/apache2.sh
pwn-0.5.211 packer/provisioners/apache2.sh
pwn-0.5.210 packer/provisioners/apache2.sh
pwn-0.5.209 packer/provisioners/apache2.sh
pwn-0.5.207 packer/provisioners/apache2.sh
pwn-0.5.206 packer/provisioners/apache2.sh
pwn-0.5.205 packer/provisioners/apache2.sh
pwn-0.5.204 packer/provisioners/apache2.sh
pwn-0.5.203 packer/provisioners/apache2.sh
pwn-0.5.202 packer/provisioners/apache2.sh
pwn-0.5.201 packer/provisioners/apache2.sh
pwn-0.5.200 packer/provisioners/apache2.sh
pwn-0.5.199 packer/provisioners/apache2.sh
pwn-0.5.198 packer/provisioners/apache2.sh
pwn-0.5.197 packer/provisioners/apache2.sh
pwn-0.5.196 packer/provisioners/apache2.sh
pwn-0.5.195 packer/provisioners/apache2.sh
pwn-0.5.194 packer/provisioners/apache2.sh