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.172 packer/provisioners/apache2.sh
pwn-0.5.171 packer/provisioners/apache2.sh
pwn-0.5.170 packer/provisioners/apache2.sh
pwn-0.5.169 packer/provisioners/apache2.sh
pwn-0.5.168 packer/provisioners/apache2.sh
pwn-0.5.167 packer/provisioners/apache2.sh
pwn-0.5.166 packer/provisioners/apache2.sh
pwn-0.5.165 packer/provisioners/apache2.sh
pwn-0.5.164 packer/provisioners/apache2.sh
pwn-0.5.163 packer/provisioners/apache2.sh
pwn-0.5.162 packer/provisioners/apache2.sh
pwn-0.5.161 packer/provisioners/apache2.sh
pwn-0.5.160 packer/provisioners/apache2.sh
pwn-0.5.159 packer/provisioners/apache2.sh
pwn-0.5.158 packer/provisioners/apache2.sh
pwn-0.5.157 packer/provisioners/apache2.sh
pwn-0.5.156 packer/provisioners/apache2.sh
pwn-0.5.155 packer/provisioners/apache2.sh
pwn-0.5.154 packer/provisioners/apache2.sh
pwn-0.5.153 packer/provisioners/apache2.sh