[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re[2]: [cobalt-users] Domain Parking - Off Topic
- Subject: Re[2]: [cobalt-users] Domain Parking - Off Topic
- From: Brian Curtis <admin@xxxxxxxxxxx>
- Date: Sat Jan 13 05:26:29 2001
- Organization: Pomfret Computer Technologies, LLC
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Hello flash22,
Thursday, January 11, 2001, 2:28:24 PM, you wrote:
fin> On Thu, 11 Jan 2001, Gavin Nelmes-Crocker wrote:
>> Hi
>>
>> Does anyone know how when you park a domain on an IP and someone goes to
>> that page by the url that it displays the page dynamically showing the url
>> you typed i.e. you create one page with a <domain.com> tag and when called
>> it displays the url type in.
fin> This can be done trivially using server incluses (eg index.shtml)
fin> Welcome to <!--#echo var="SERVER_NAME" -->
fin> (plus the appropriate <html>...
fin> note that if someone access the domain by IP number that's what they will
fin> see however...the server hasn't a clue...
If you have PHP4 installed, this is also another, much shorter, way to
do it:
<?= $HTTP_HOST ?>
--
Best regards,
Brian Curtis