[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Getting ServerName or domain name in script
- Subject: [cobalt-users] Getting ServerName or domain name in script
- From: Cody Watkins <codyw@xxxxxxxxxxxxxxxxx>
- Date: Sun Sep 24 12:29:33 2000
Hello all!
Have a question. I have a PERL script that needs to be able to find out
what domain name it is being used under. I have setup a script alias
location of cgi-sys for all clients on one server. Ie. Every domain on the
server has the location /cgi-sys/ and it contains exactly the same
things. One script in there needs to know the domain name for which it is
being used under. And since this script is being used for multiple domains
all at once, is there a way it can find out which domain it is being used
under. It can probably get it from the HTTP Header, but how do I extract
it, and how do I isolate just the domain name?
Thanks!
Cody Watkins