Re: Creating Third Level Domain
| From: | mahesh | Date: | Wed, 05 Jul 2000 00:47:36 +0000 |
| Subject: | Re: Creating Third Level Domain | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4842@lists.php.net to get a copy of this message | ||
I got what u are telling.
After doing some research i found out
"Virtual Host examples for common setups" from
http://www.apache.org/docs/vhosts/examples.html
Also I found out Apache Api for doing so .
See Frankly speaking I have worked lot on Microsoft systems (IISS,Asp ) etc
I am new to Apache (even I have worked on php )
Can u tell me how ot incorporate apache api function in the php code ..??
Please help
Thanks fir your reply
Palan Mahesh
Chris Adams wrote:
> > Does any body has any idea of creating a thirdlevel domain through
> > Script (php) .(for .e.g abc.domain.com)
>
> Details are system specific but you'd basically need to:
> 1) Add new host or domain to DNS server
> 2) (maybe) modify configuration files for any program that will need to use
> the new host or domain.
>
> It could be simpler if you only need the end user to see that hosts like
> abc.domain.com exist and they all really point to the same webserver. In
> that case, you could add a single wildcard DNS record pointing to your
> webserver and use something like mod_rewrite to make requests for
> http://abc.domain.com/ act as if the user really chose
> http://www.domain.com/custom.php?host=abc&page=/.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
Chris Adams wrote:
> > Does any body has any idea of creating a thirdlevel domain through
> > Script (php) .(for .e.g abc.domain.com)
>
> Details are system specific but you'd basically need to:
> 1) Add new host or domain to DNS server
> 2) (maybe) modify configuration files for any program that will need to use
> the new host or domain.
>
> It could be simpler if you only need the end user to see that hosts like
> abc.domain.com exist and they all really point to the same webserver. In
> that case, you could add a single wildcard DNS record pointing to your
> webserver and use something like mod_rewrite to make requests for
> http://abc.domain.com/ act as if the user really chose
> http://www.domain.com/custom.php?host=abc&page=/.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net