Changeset 398
- Timestamp:
- Sep 10, 2007, 4:56:46 PM (17 years ago)
- Location:
- vhosts
- Files:
-
- 1 added
- 24 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
vhosts/settings/bunnyfish.mit.edu
r132 r398 1 1 Connie's MIT Stuff 2 http://scripts.mit.edu/~yehc/www /3 https://scripts-cert.mit.edu/~yehc/www /2 http://scripts.mit.edu/~yehc/www 3 https://scripts-cert.mit.edu/~yehc/www -
vhosts/settings/torg.mit.edu
r132 r398 1 1 torg.mit.edu 2 http://scripts.mit.edu/~rspeer/redirect /3 https://scripts.mit.edu/~rspeer/redirect /2 http://scripts.mit.edu/~rspeer/redirect 3 https://scripts.mit.edu/~rspeer/redirect -
vhosts/vhosts-vhost-names.gen.sh
r358 r398 1 1 #!/bin/sh 2 cd /mit/scripts/vhosts/settings/ || exit 1 2 cd settings || exit 1 3 vhosts= 4 check () { 5 host -t A "$1" | grep -q " has address 18\.181\.0\.46$" && \ 6 vhosts=$vhosts\ $1 7 } 8 for 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 14 done 3 15 echo "ServerName vhosts.mit.edu" 4 echo -n "ServerAlias "; echo * | perl -pe 's/(\S+)\.mit\.edu/\1.mit.edu \1/g'16 echo "ServerAlias$vhosts"
Note: See TracChangeset
for help on using the changeset viewer.