Thread: 'www' prefix
View Single Post

  #1 (permalink)  
Old 11-05-2004
Max
 
Posts: n/a
Default 'www' prefix

Hi all,

For some reason, I have to create two VirtualHost configurations in
order to cover those who include 'www' and those who don't. Here is my
configuration for a domain name:

<VirtualHost 66.199.183.31:80>
User orgelcomm
Group users
ServerName elcommunity.org
Setenv VLOG /home/orgelcomm/logs
DocumentRoot /home/orgelcomm/public_html
</VirtualHost>

<VirtualHost 66.199.183.31:80>
User orgelcomm
Group users
ServerName www.elcommunity.org
Setenv VLOG /home/orgelcomm/logs
DocumentRoot /home/orgelcomm/public_html
</VirtualHost>

Is it possible to make these two into one? I tried using wildcards and
so on, and haven't been able to find anything in the docs to help me.

Apache signature:

Server Version: Apache/1.3.31 (Unix) (Gentoo/Linux) mod_ssl/2.8.19
OpenSSL/0.9.7d PHP/4.3.8
Server Built: Aug 24 2004 17:31:47

Any suggestions?

Thanks,
Max