Skip to content

Instantly share code, notes, and snippets.

@ciaranarcher
Created October 10, 2012 10:33
Show Gist options
  • Save ciaranarcher/3864651 to your computer and use it in GitHub Desktop.
Save ciaranarcher/3864651 to your computer and use it in GitHub Desktop.
vhosts investigation
# 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