Re: How to add more domains on apache w2k
| From: | martinahingis | Date: | Tue, 02 Apr 2002 21:42:38 +0000 |
| Subject: | Re: How to add more domains on apache w2k | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-12909@lists.php.net to get a copy of this message | ||
thanks so much
--
martina.
"Warren Vail" <Warren.Vail@Schwab.com> wrote in message
news:A252B2CDF6D2D4119DAB0002A51326DE09A98EA0@n1028smx.nt.schwab.com...
>
> Don't you also need to do something to cause DNS to resolved to the IP of
> the same server for both domains?
>
> Any idea what's required to do this using NT DNS? / BIND?
>
> thanks,
>
> Warren Vail
> Tools, Metrics & Quality Processes
> (415) 667-7814
> Pager (877) 774-9891
> 215 Fremont 02-658
>
>
> -----Original Message-----
> From: Shrock, Court [mailto:ShrockC@inhs.org]
> Sent: Monday, April 01, 2002 2:10 PM
> To: 'martinahingis'; php-windows@lists.php.net
> Subject: RE: [PHP-WIN] How to add more domains on apache w2k
>
>
> You can add another domain by creating a <VirtualHost></VirtualHost>
section
> in your httpd.conf file for each domain you want to add. Inside this
> section, you specify the document root directory to serve files from.
>
> a sample follows (More information can be found at
> http://www.apache.org/docs/vhosts/):
>
> # this directive tells apache to use the Host header from the http request
> NameVirtualHost *
>
> # the actual virtual host container for domain1
> <VirtualHost *>
> ServerName www.domain1.com
> ServerAlias www.domain1.com *.domain1.com
> DocumentRoot c:\path\to\domain1\files
> </VirtualHost>
>
> # the actual virtual host container for domain2
> <VirtualHost *>
> ServerName www.domain2.com
> ServerAlias www.domain2.com *.domain2.com
> DocumentRoot c:\path\to\domain2\files
> </VirtualHost>
>
>
> > -----Original Message-----
> > From: martinahingis [mailto:rauf@ug.bcc.bilkent.edu.tr]
> > Sent: Monday, April 01, 2002 1:03 PM
> > To: php-windows@lists.php.net
> > Subject: [PHP-WIN] How to add more domains on apache w2k
> >
> >
> > I have added a domain at my W2K machine in my network
> > neighborhood, LAN ->
> > DNS Settings. And when i write my ip or the domain name i
> > specified, on ie,
> > it goes my htdocs folder as it must do.
> >
> > My question is that how can i add another domain name. If I
> > add it to DNS
> > settings, where will its htdocs directory? A different htdocs
> > or a folder
> > under it? Is it about the httpd.conf file? I don't know
> > dealing with more
> > than one domains apache at all.
> >
> > thanks for help
> >
> > martina.
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php