[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Domain Parking - Off Topic
- Subject: Re: [cobalt-users] Domain Parking - Off Topic
- From: Jeff Lasman <jblists@xxxxxxxxxxxxx>
- Date: Wed Jan 17 20:50:34 2001
- Organization: nobaloney.net
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Can anyone tell me why this, which works well on my RaQ3i, doesn't work
on my RHL7.0 system?
Any advice will be appreciated offlist.
Thanks.
Jeff
Brian Curtis wrote:
>
> >>> 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...
>
> BC> If you have PHP4 installed, this is also another, much shorter, way to
> BC> do it:
>
> BC> <?= $HTTP_HOST ?>
>
> NOTE:
>
> Forgot to mention... If your using a NameVirtualHost with many
> domains parked on a single IP, then you want the "HTTP_HOST" value.
> "SERVER_NAME" will only return the first declared NVH VHOST entry in
> your httpd config file.
>
> --
> Best regards,
> Brian Curtis
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
--
Jeff Lasman <jblists@xxxxxxxxxxxxx>
nobaloney.net
P. O. Box 52672
Riverside, CA 92517
voice: (909) 787-8589 * fax: (909) 782-0205