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.193 packer/provisioners/apache2.sh
pwn-0.5.192 packer/provisioners/apache2.sh
pwn-0.5.191 packer/provisioners/apache2.sh
pwn-0.5.190 packer/provisioners/apache2.sh
pwn-0.5.189 packer/provisioners/apache2.sh
pwn-0.5.188 packer/provisioners/apache2.sh
pwn-0.5.187 packer/provisioners/apache2.sh
pwn-0.5.186 packer/provisioners/apache2.sh
pwn-0.5.185 packer/provisioners/apache2.sh
pwn-0.5.184 packer/provisioners/apache2.sh
pwn-0.5.183 packer/provisioners/apache2.sh
pwn-0.5.181 packer/provisioners/apache2.sh
pwn-0.5.180 packer/provisioners/apache2.sh
pwn-0.5.179 packer/provisioners/apache2.sh
pwn-0.5.178 packer/provisioners/apache2.sh
pwn-0.5.177 packer/provisioners/apache2.sh
pwn-0.5.176 packer/provisioners/apache2.sh
pwn-0.5.175 packer/provisioners/apache2.sh
pwn-0.5.174 packer/provisioners/apache2.sh
pwn-0.5.173 packer/provisioners/apache2.sh