Created
March 11, 2013 21:29
-
-
Save pbosetti/5137944 to your computer and use it in GitHub Desktop.
Bash templating
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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