[vox-tech] web server question

Jeff Newmiller vox-tech@lists.lugod.org
Wed, 26 Jun 2002 17:28:48 -0700 (PDT)


On Wed, 26 Jun 2002, Peter Jay Salzman wrote:

> suppose i have two domains:
> 
> www.freshandsassy.org
> www.oldandtired.com
> 
> 
> suppose:
> 
> 1.  i'd like requests to http://freshandsassy.org to get:
>     /www1/index.html
> 
> 2. i'd like requests to http://oldandtired.com to get:
>    /www2/index.html
> 
> 
> how would i do this with apache?

httpd.conf:

  ...
  NameVirtualHost your.public.ip.address

  <VirtualHost your.public.ip.address>
  ServerName freshandsassy.org
  DocumentRoot /www1/
  ...
  </VirtualHost>

  <VirtualHost your.public.ip.address>
  ServerName oldandtired.com
  DocumentRoot /www2/
  ...
  </VirtualHost>

> is this what people call "virtual hosting"?

two possible answers, any three guesses... ;)

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil@dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...2k
---------------------------------------------------------------------------