Re: Re: How to add more domains on apache w2k
| From: | martinahingis | Date: | Tue, 02 Apr 2002 02:12:23 +0000 |
| Subject: | Re: Re: How to add more domains on apache w2k | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-12880@lists.php.net to get a copy of this message | ||
I actually dont know how DNS works.
I have a domain which my university gave me and make its settings properly.
I set my machine for the DNS address they gave me and the domain name to the
DNS settings of the TCP/IP settings window.
This domain works perfect. But now I registered another domain name and I
can directly change my new domains name server or DNS (or smthing like that
i can't remember) via a web based sistem.
Is it enough for me to set my server to the second domain or do I have to
say my university computer center to resolve my ip for the second domain
name or smth?
And also I dont know what BIND is. Actually i dont like protocols. But love
PHP.
thanks for advices. If you know ansers to my question i'll be happy.
martina.
----- Original Message -----
From: "Vail, Warren" <Warren.Vail@Schwab.com>
To: "'Shrock, Court'" <ShrockC@inhs.org>;
"'martinahingis'"
<rauf@ug.bilkent.edu.tr>; <php-windows@lists.php.net>
Sent: Tuesday, April 02, 2002 2:10 AM
Subject: RE: [PHP-WIN] How to add more domains on apache w2k
>
> 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
>
>