source: vhosts/vhosts-vhost-names.gen.sh @ 421

Last change on this file since 421 was 398, checked in by andersk, 17 years ago
Clean up vhosts/ and bring it up to date.
  • Property svn:executable set to *
File size: 400 bytes
Line 
1#!/bin/sh
2cd settings || exit 1
3vhosts=
4check () {
5    host -t A "$1" | grep -q " has address 18\.181\.0\.46$" && \
6        vhosts=$vhosts\ $1
7}
8for i in *; do
9    check "$i" || echo "warning: $i does not point to scripts!"
10    check "www.$i"
11    if echo "$i" | grep -q '\.mit\.edu$'; then
12        check "$(echo "$i" | sed 's/\.mit\.edu$//')"
13    fi
14done
15echo "ServerName vhosts.mit.edu"
16echo "ServerAlias$vhosts"
Note: See TracBrowser for help on using the repository browser.