akersche
July 13th, 2001, 09:49
Hello,
I know there have been already some threads about this topic. And I know I could just use forwarding with e.g. mydomain.com.
BUT then useres don't see the file and path of the actual file. (Know about path forwarding... But that's not what I am looking for.)
I already found some scripts, but not sure, which could do that. And if it's possible on my host.
(Didn't manage to get it working yet:-( )
It should be, cause I got a unique IP and server seems to allow wildcards. (virtual site on tera-byte)
I really need urgent subdomains... Cause I have given them out before (used to have mydomain with just url-forwarding).
What script would do that?!
For the moment forwarding would be also ok...
Thx for your help in advance!
Greetings Arno
PS: Tried following:
DomainDirector v1.1
http://www.scriptsolutions.com/
And set it like this:
#!/usr/bin/perl --
############################################################ ####
# #
# DomainDirector v1.1 #
# Copyright ©1999 - Tintagel Consulting, LLC #
# dba Script Solutions #
# http://www.scriptsolutions.com/ #
# All rights reserved #
# #
############################################################ ####
# #
# PURPOSE OF PROGRAM: #
# #
# DomainDirector v1.1 allows you to direct parked domains to a #
# subdirectory of a "primary" domain. #
# #
# #
# INSTRUCTIONS: #
# #
# Installation instructions are in the readme.txt file that #
# was included in this distribution. #
# #
# #
# LICENSE AGREEMENT: #
# #
# By installing DomainDirector v1.1, you have #
# agreed to indemnify, defend, and hold harmless Tintagel #
# Consulting, LLC dba Script Solutions from any and all #
# liability, penalties, losses, damages, costs, expenses, #
# attorneys' fees, causes of action or claims caused by or #
# resulting indirectly from your use of this script which #
# damages either you, or any other party or parties without #
# limitation or exception. This indemnification and hold #
# harmless agreement extends to all issues associated with #
# this script. #
# #
############################################################ ####
############################################################ ####
# #
# EDIT BELOW #
# #
############################################################ ####
$mainpage = "home.htm";
%domains = (
'www.board.kersche.net' => 'board.htm',
'www.job.kersche.net' => 'job.htm',
'www.party.kersche.net' => 'party.htm',
'www.schloegi.party.kersche.net' => 'schloegi.htm',
'www.outdooracademyaustria.com' => 'main.html'
);
############################################################ ####
# DO NOT CHANGE BELOW THIS LINE! #
############################################################ ####
$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;
I know there have been already some threads about this topic. And I know I could just use forwarding with e.g. mydomain.com.
BUT then useres don't see the file and path of the actual file. (Know about path forwarding... But that's not what I am looking for.)
I already found some scripts, but not sure, which could do that. And if it's possible on my host.
(Didn't manage to get it working yet:-( )
It should be, cause I got a unique IP and server seems to allow wildcards. (virtual site on tera-byte)
I really need urgent subdomains... Cause I have given them out before (used to have mydomain with just url-forwarding).
What script would do that?!
For the moment forwarding would be also ok...
Thx for your help in advance!
Greetings Arno
PS: Tried following:
DomainDirector v1.1
http://www.scriptsolutions.com/
And set it like this:
#!/usr/bin/perl --
############################################################ ####
# #
# DomainDirector v1.1 #
# Copyright ©1999 - Tintagel Consulting, LLC #
# dba Script Solutions #
# http://www.scriptsolutions.com/ #
# All rights reserved #
# #
############################################################ ####
# #
# PURPOSE OF PROGRAM: #
# #
# DomainDirector v1.1 allows you to direct parked domains to a #
# subdirectory of a "primary" domain. #
# #
# #
# INSTRUCTIONS: #
# #
# Installation instructions are in the readme.txt file that #
# was included in this distribution. #
# #
# #
# LICENSE AGREEMENT: #
# #
# By installing DomainDirector v1.1, you have #
# agreed to indemnify, defend, and hold harmless Tintagel #
# Consulting, LLC dba Script Solutions from any and all #
# liability, penalties, losses, damages, costs, expenses, #
# attorneys' fees, causes of action or claims caused by or #
# resulting indirectly from your use of this script which #
# damages either you, or any other party or parties without #
# limitation or exception. This indemnification and hold #
# harmless agreement extends to all issues associated with #
# this script. #
# #
############################################################ ####
############################################################ ####
# #
# EDIT BELOW #
# #
############################################################ ####
$mainpage = "home.htm";
%domains = (
'www.board.kersche.net' => 'board.htm',
'www.job.kersche.net' => 'job.htm',
'www.party.kersche.net' => 'party.htm',
'www.schloegi.party.kersche.net' => 'schloegi.htm',
'www.outdooracademyaustria.com' => 'main.html'
);
############################################################ ####
# DO NOT CHANGE BELOW THIS LINE! #
############################################################ ####
$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;