Skip to content

Instantly share code, notes, and snippets.

@pbosetti
Created March 11, 2013 21:29
Show Gist options
  • Save pbosetti/5137944 to your computer and use it in GitHub Desktop.
Save pbosetti/5137944 to your computer and use it in GitHub Desktop.
Bash templating
STATUS_URI="/hows-it-goin"; MONITOR_IP="10.10.2.15";
cat >/etc/apache2/conf.d/mod_status.conf <<EOF
<Location ${STATUS_URI}>
SetHandler server-status
Order deny,allow
Deny from all
Allow from ${MONITOR_IP}
</Location>
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment