Created
October 10, 2012 10:33
-
-
Save ciaranarcher/3864651 to your computer and use it in GitHub Desktop.
vhosts investigation
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
# create list of hosts | |
cat content_vhosts.conf | grep ServerName | awk '{ print $2 }' | sort >> sorted_hosts.txt | |
# health check for each | |
# use cntlm proxy, max op time of 5s | |
for host in `cat sorted_hosts.txt` | |
do | |
curl -sLk -x http://localhost:3128 -m 5 -w "$host : %{url_effective} %{http_code} in %{num_redirects} redirs\\n" $host -o /dev/null | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment