Changeset 398 for vhosts


Ignore:
Timestamp:
Sep 10, 2007, 4:56:46 PM (17 years ago)
Author:
andersk
Message:
Clean up vhosts/ and bring it up to date.
Location:
vhosts
Files:
1 added
24 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • vhosts/settings/bunnyfish.mit.edu

    r132 r398  
    11Connie's MIT Stuff
    2 http://scripts.mit.edu/~yehc/www/
    3 https://scripts-cert.mit.edu/~yehc/www/
     2http://scripts.mit.edu/~yehc/www
     3https://scripts-cert.mit.edu/~yehc/www
  • vhosts/settings/torg.mit.edu

    r132 r398  
    11torg.mit.edu
    2 http://scripts.mit.edu/~rspeer/redirect/
    3 https://scripts.mit.edu/~rspeer/redirect/
     2http://scripts.mit.edu/~rspeer/redirect
     3https://scripts.mit.edu/~rspeer/redirect
  • vhosts/vhosts-vhost-names.gen.sh

    r358 r398  
    11#!/bin/sh
    2 cd /mit/scripts/vhosts/settings/ || exit 1
     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
    315echo "ServerName vhosts.mit.edu"
    4 echo -n "ServerAlias "; echo * | perl -pe 's/(\S+)\.mit\.edu/\1.mit.edu \1/g'
     16echo "ServerAlias$vhosts"
Note: See TracChangeset for help on using the changeset viewer.