home *** CD-ROM | disk | FTP | other *** search
- #!C:\Perl\bin\perl.exe
-
- #################################################
- # Sub-Domain CGI Script Tool #
- # from: http://www.softlite.net #
- #################################################
- # Soft Lite MoreDomains Version 2.0a #
- # Copyright ⌐ 1998 Soft Lite Network #
- # All Rights Reserved. #
- #################################################
- # By using this file you agree to hold Soft #
- # Lite irresponsible for any consequences that #
- # may ensue by use of this product. #
- # No part of this program may be changed without#
- # the prior written consent of Soft Lite #
- #################################################
- # Use chmod 755 command on this file to run #
- # It must be placed in your root directory. #
- #################################################
- # This file is for Unix servers and must be #
- # using Perl 5. Rename the file to index.cgi #
- #################################################
-
- #################################################
- # USER DEFINED INFORMATION #
- #################################################
-
- $mainpage = "index.htm";
-
-
- %domains = (
- 'www.softlite.net' => 'scriptworx/',
- );
-
- #################################################
- # DO NOT EDIT THE FOLLOWING #
- #################################################
-
- $server = lc($ENV{'HTTP_HOST'});if ($ENV{'HTTP_HOST'} =~ /(\d+)\.(\d+)\.(\d+)\.(\d+)/){$t='/'}else{if ($server !~ /^www./){$server = 'www.' . $server;}}@domains = keys(%domains);foreach $domain(@domains){if ($domain eq $server){print "Location: http://${server}/$domains{$server}\n\n";$match="yes";last;exit}}unless ($match){print "Location: http://$server/$mainpage\n\n";exit}exit;