#!/bin/bash if [[ -f /usr/local/lsws/conf/vhosts/$1/vhost.conf ]] ; then cat << EOF > header.txt context /wp-content/cache/css/ { location $DOC_ROOT/wp-content/cache/css/ allowBrowse 1 enableExpires 1 expiresByType text/css=A15552000 extraHeaders <<> /usr/local/lsws/conf/vhosts/$1/vhost.conf fi rm -f header.txt rm -f $0