#! /bin/sh # Simple httpd redirecting machine # 1996/7 by Laurent Demailly - dl@hplyot.obspm.fr - http://hplyot.obspm.fr/~dl/ # Latest version on http://hplyot.obspm.fr/~dl/wwwtools.html NEWURL=http://new.location.url/ # Installation: To redirect to another machine # Modify the url above, them # assuming you have # www 80/tcp # (change 80 to whatever your regular httpd runs on) # in /etc/services # Put # www stream tcp nowait httpd /usr/local/etc/busy busy # in /etc/inetd.conf # chmod 755 /usr/local/etc/busy # kill your regular httpd, kill -1 inetd, and you're done ! cat << _EOF_ HTTP/1.0 302 Redirect Server: dlsh/0.1 Location: $NEWURL