[vox-tech] web server question

Rod Roark vox-tech@lists.lugod.org
Wed, 26 Jun 2002 17:35:58 -0700


Yes, you'd use "virtual hosting" for that.  Add stuff like
this (just an example!) to httpd.conf:

------------------------------------------------------------

NameVirtualHost *

<VirtualHost *>
  ServerName    freshandsassy.org
  DocumentRoot  /usr/local/apache/www1
  <Directory   "/usr/local/apache/www1">
    Options Indexes Includes FollowSymLinks ExecCGI
    AllowOverride Limit Indexes
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>

<VirtualHost *>
  ServerName      oldandtired.com
  ServerAlias www.oldandtired.com
  DocumentRoot  /usr/local/apache/www2
    ...
</VirtualHost>

------------------------------------------------------------

Of course you'll want to look all this up in the Apache docs
and make sure you understand it.

-- Rod

On Wednesday 26 June 2002 05:12 pm, 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?   is this what people call "virtual
> hosting"?
>
> pete